Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ddm
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gmsh
ddm
Commits
05cb5d00
Commit
05cb5d00
authored
2 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
option for solver type
parent
31be9b66
No related branches found
No related tags found
No related merge requests found
Pipeline
#10113
passed
2 years ago
Stage: gmshfem
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorials/helmholtz/scattering3D/main.cpp
+4
-1
4 additions, 1 deletion
tutorials/helmholtz/scattering3D/main.cpp
with
4 additions
and
1 deletion
tutorials/helmholtz/scattering3D/main.cpp
+
4
−
1
View file @
05cb5d00
...
@@ -60,6 +60,9 @@ int main(int argc, char **argv)
...
@@ -60,6 +60,9 @@ int main(int argc, char **argv)
int
nDom
=
2
;
int
nDom
=
2
;
gmshDdm
.
userDefinedParameter
(
nDom
,
"nDom"
);
gmshDdm
.
userDefinedParameter
(
nDom
,
"nDom"
);
std
::
string
solver
=
"gmres"
;
// try also "tfqmr"
gmshDdm
.
userDefinedParameter
(
solver
,
"solver"
);
double
lc
=
0.1
;
double
lc
=
0.1
;
gmshDdm
.
userDefinedParameter
(
lc
,
"lc"
);
gmshDdm
.
userDefinedParameter
(
lc
,
"lc"
);
...
@@ -226,7 +229,7 @@ int main(int argc, char **argv)
...
@@ -226,7 +229,7 @@ int main(int argc, char **argv)
double
tolerence
=
1e-6
;
double
tolerence
=
1e-6
;
int
maxIter
=
1000
;
int
maxIter
=
1000
;
formulation
.
pre
();
formulation
.
pre
();
formulation
.
solve
(
"gmres"
,
tolerence
,
maxIter
,
true
);
formulation
.
solve
(
solver
,
tolerence
,
maxIter
,
true
);
if
(
u_exact
)
{
if
(
u_exact
)
{
// Compute analytic L2-error
// Compute analytic L2-error
...
...
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