Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
f971303e
Commit
f971303e
authored
2 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation for linear_solver module
parent
ec04cb8f
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!145
git subrepo clone git@gitlab.com:OlMon/org-themes.git packages/org-themes
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/userdoc.org
+67
-0
67 additions, 0 deletions
doc/userdoc.org
with
67 additions
and
0 deletions
doc/userdoc.org
+
67
−
0
View file @
f971303e
...
@@ -4037,6 +4037,73 @@ The following operators are defined
...
@@ -4037,6 +4037,73 @@ The following operators are defined
\end{equation*}
\end{equation*}
#+end_src
#+end_src
*** The ~linear_solver~ module
This module provides the following functions
#+NAME: get-module-info-linear-solver
#+BEGIN_SRC pugs :exports both :results output
cout << getModuleInfo("linear_solver") << "\n";
#+END_SRC
#+RESULTS: get-module-info-linear-solver
**** ~linear_solver~ provided functions
The set of provided functions is used to define the global behavior of
~pugs~ linear system solver.
***** Utility functions
An important function is
****** ~getLSAvailable: void -> string~
This shows the available options or libraries that are available. It
depends on the compilation options of the code.
#+NAME: get-ls-available-example
#+BEGIN_SRC pugs :exports both :results output
import linear_solver;
cout << getLSAvailable() << "\n";
#+END_SRC
#+results: get-ls-available-example
****** ~getLSOptions: void -> string~
This function show the current tuning of the global linear solver
#+NAME: get-ls-options-example
#+BEGIN_SRC pugs :exports both :results output
import linear_solver;
cout << getLSOptions() << "\n";
#+END_SRC
#+results: get-ls-options-example
***** Tuning functions
****** ~setLSEpsilon: R -> void~
Sets the relative epsilon criterion for iterative methods.
****** ~setLSLibrary: string -> void~
Selects the library to use.
****** ~setLSMaxIter: N -> void~
Sets the maximum number of iterations.
****** ~setLSMethod: string -> void~
Sets the method to solve linear systems.
****** ~setLSPrecond: string -> void~
Sets the preconditioner type.
****** ~setLSVerbosity: B -> void~
Sets verbosity mode to ~true~ or ~false~ for linear solvers.
[fn:pugs-def] ~pugs~: Parallel Unstructured Grid Solvers
[fn:pugs-def] ~pugs~: Parallel Unstructured Grid Solvers
[fn:MPI-def] ~MPI~: Message Passing Interface
[fn:MPI-def] ~MPI~: Message Passing Interface
[fn:DSL-def] ~DSL~: Domain Specific Language~
[fn:DSL-def] ~DSL~: Domain Specific Language~
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment