Make number of iterations, prolongation factor, and number of smoothing adjustable

This commit is contained in:
Markus Blatt
2012-11-19 13:44:21 +01:00
parent 6de11bb38e
commit 74ec1b66ec
2 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -96,8 +96,10 @@ int main(int varnum, char** vararg) {
options.insert(make_pair("linsolver_tolerance", "1e-8")); // residual tolerance for linear solver
options.insert(make_pair("linsolver_verbosity", "0")); // verbosity level for linear solver
options.insert(make_pair("linsolver_max_iterations", "0")); // Maximum number of iterations allow, specify 0 for default
options.insert(make_pair("linsolver_prolongate_factor", "1.6")); // Factor to scale the prolongate coarse grid correction
options.insert(make_pair("linsolver_type", "1")); // type of linear solver: 0 = ILU/BiCGStab, 1 = AMG/CG
options.insert(make_pair("linsolver_smooth_steps", "2")); // Number of pre and postsmoothing steps for AMG
// Parse options from command line
int eclipseindex = 1; // Index for the eclipsefile in the command line options