Run model#
Tandem is invoked with the following syntax: $ tandem parameter_file.toml {tandem options} --petsc {PETSc options}.
E.g.,
$ ./tandem ../examples/tandem/2d/tutorial.toml --discrete_green yes --petsc -ksp_type preonly -pc_type lu -pc_factor_mat_solver_type mumps -ts_type rk -ts_rk_type 5dp -ts_rtol 1e-8 -ts_atol 1e-50 -ts_adapt_wnormtype infinity -ts_dt 0.0001
Here, --discrete_green yes is equivalent to adding mode="QDGreen" in the parameter file.
As an alternative for a cleaner command line, multiple PETSc options can be specified in a file and loaded using the --options_file option.
E.g.,
$ ./tandem ../examples/tandem/2d/tutorial.toml --discrete_green yes --petsc -options_file solver.cfg
where solver.cfg becomes:
-ksp_type preonly
-pc_type lu
-pc_factor_mat_solver_type mumps
-ts_type rk
-ts_rk_type 5dp
-ts_rtol 1e-8
-ts_atol 1e-50
-ts_adapt_wnormtype infinity
-ts_dt 0.0001