v0.10.0
users_modules
multifield_plasticity
src
DefaultParams.hpp
Go to the documentation of this file.
1
const
std::string
default_options
=
"-order 2 \n"
2
"-load_history load_history.in \n"
3
" \n"
4
"-pc_type lu \n"
5
"-pc_factor_mat_solver_type mumps \n"
6
"#-ksp_monitor \n"
7
" \n"
8
"-snes_atol 1e-8 \n"
9
"-snes_rtol 1e-8 \n"
10
"-snes_max_linear_solve_fail -1 \n"
11
"-snes_linesearch_type basic \n"
12
"#-snes_monitor \n"
13
"-snes_max_it 25 \n"
14
" \n"
15
"-ts_max_time 2 \n"
16
"-ts_max_snes_failures 2 \n"
17
"-ts_type beuler \n"
18
"-ts_exact_final_time matchstep \n"
19
"-ts_dt 0.05 \n"
20
"-ts_error_if_step_fails false \n"
21
"-ts_monitor \n"
22
" \n"
23
"#-ts_adapt_monitor \n"
24
"#-ts_adapt_type basic \n"
25
"#-ts_adapt_basic_safety 0.8 \n"
26
"#-ts_adapt_dt_max 5.0 \n"
27
"#-ts_adapt_dt_min 0.005 \n"
;
28
29
std::string
param_file
=
"param_file.petsc"
;
30
31
if
(!
static_cast<
bool
>
(ifstream(
param_file
))) {
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
}
param_file
std::string param_file
Definition:
DefaultParams.hpp:29
default_options
const std::string default_options
Definition:
DefaultParams.hpp:1
Generated on Tue Jan 19 2021 13:53:06 for MoFEM by
Doxygen
1.8.20 and hosted at