v0.10.0
Functions | Variables
DefaultParams.hpp File Reference

Go to the source code of this file.

Functions

 if (!static_cast< bool >(ifstream(param_file)))
 

Variables

const std::string default_options
 
std::string param_file = "param_file.petsc"
 

Function Documentation

◆ if()

if ( !static_cast< bool ifstream(param_file))

Definition at line 31 of file DefaultParams.hpp.

31  {
32  std::ofstream file(param_file.c_str(), std::ios::ate);
33  if (file.is_open()) {
34  file << default_options;
35  file.close();
36  }
37 }

Variable Documentation

◆ default_options

const std::string default_options
Initial value:
= "-order 2 \n"
"-load_history load_history.in \n"
" \n"
"-pc_type lu \n"
"-pc_factor_mat_solver_type mumps \n"
"#-ksp_monitor \n"
" \n"
"-snes_atol 1e-8 \n"
"-snes_rtol 1e-8 \n"
"-snes_max_linear_solve_fail -1 \n"
"-snes_linesearch_type basic \n"
"#-snes_monitor \n"
"-snes_max_it 25 \n"
" \n"
"-ts_max_time 2 \n"
"-ts_max_snes_failures 2 \n"
"-ts_type beuler \n"
"-ts_exact_final_time matchstep \n"
"-ts_dt 0.05 \n"
"-ts_error_if_step_fails false \n"
"-ts_monitor \n"
" \n"
"#-ts_adapt_monitor \n"
"#-ts_adapt_type basic \n"
"#-ts_adapt_basic_safety 0.8 \n"
"#-ts_adapt_dt_max 5.0 \n"
"#-ts_adapt_dt_min 0.005 \n"
Examples
elasticity.cpp, elasticity_mixed_formulation.cpp, magnetostatic.cpp, simple_contact.cpp, simple_elasticity.cpp, and unsaturated_transport.cpp.

Definition at line 1 of file DefaultParams.hpp.

◆ param_file

std::string param_file = "param_file.petsc"
param_file
std::string param_file
Definition: DefaultParams.hpp:29
default_options
const std::string default_options
Definition: DefaultParams.hpp:1