mirror of
https://github.com/OPM/opm-upscaling.git
synced 2026-08-27 05:27:10 -05:00
Make number of iterations, prolongation factor, and number of smoothing adjustable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user