1010#include " 4C_inpar_bio.hpp"
1111#include " 4C_io_input_spec_builders.hpp"
1212
13+ #include < Teuchos_Time.hpp>
14+
1315FOUR_C_NAMESPACE_OPEN
1416
15- void POROFLUIDMULTIPHASE::set_valid_parameters (std::map<std::string, Core::IO::InputSpec>& list)
17+ void PoroPressureBased::set_valid_parameters_porofluid (
18+ std::map<std::string, Core::IO::InputSpec>& list)
1619{
1720 using namespace Core ::IO::InputSpecBuilders;
1821
@@ -36,17 +39,18 @@ void POROFLUIDMULTIPHASE::set_valid_parameters(std::map<std::string, Core::IO::I
3639
3740 deprecated_selection<TimeIntegrationScheme>(" TIMEINTEGR" ,
3841 {
39- {" One_Step_Theta" , timeint_one_step_theta },
42+ {" One_Step_Theta" , TimeIntegrationScheme::one_step_theta },
4043 },
41- {.description = " Time Integration Scheme" , .default_value = timeint_one_step_theta}),
44+ {.description = " Time Integration Scheme" ,
45+ .default_value = TimeIntegrationScheme::one_step_theta}),
4246
4347 deprecated_selection<CalcError>(" CALCERROR" ,
4448 {
45- {" No" , calcerror_no },
46- {" error_by_function" , calcerror_byfunction },
49+ {" No" , CalcError::no },
50+ {" error_by_function" , CalcError::by_function },
4751 },
4852 {.description = " compute error compared to analytical solution" ,
49- .default_value = calcerror_no }),
53+ .default_value = CalcError::no }),
5054
5155 parameter<int >(" CALCERRORNO" ,
5256 {.description = " function number for porofluidmultiphase error computation" ,
@@ -76,11 +80,11 @@ void POROFLUIDMULTIPHASE::set_valid_parameters(std::map<std::string, Core::IO::I
7680 // parameters for finite difference check
7781 deprecated_selection<FdCheck>(" FDCHECK" ,
7882 {
79- {" none" , fdcheck_none },
80- {" global" , fdcheck_global },
83+ {" none" , FdCheck::none },
84+ {" global" , FdCheck::global },
8185 },
8286 {.description = " flag for finite difference check: none, local, or global" ,
83- .default_value = fdcheck_none }),
87+ .default_value = FdCheck::none }),
8488 parameter<double >(" FDCHECKEPS" ,
8589 {.description = " dof perturbation magnitude for finite difference check (1.e-6 "
8690 " seems to work very well, whereas smaller values don't)" ,
@@ -114,25 +118,25 @@ void POROFLUIDMULTIPHASE::set_valid_parameters(std::map<std::string, Core::IO::I
114118
115119 deprecated_selection<VectorNorm>(" VECTORNORM_RESF" ,
116120 {
117- {" L1" , POROFLUIDMULTIPHASE::norm_l1 },
118- {" L1_Scaled" , POROFLUIDMULTIPHASE::norm_l1_scaled },
119- {" L2" , POROFLUIDMULTIPHASE::norm_l2 },
120- {" Rms" , POROFLUIDMULTIPHASE::norm_rms },
121- {" Inf" , POROFLUIDMULTIPHASE::norm_inf },
121+ {" L1" , VectorNorm::l1 },
122+ {" L1_Scaled" , VectorNorm::l1_scaled },
123+ {" L2" , VectorNorm::l2 },
124+ {" Rms" , VectorNorm::rms },
125+ {" Inf" , VectorNorm::inf },
122126 },
123127 {.description = " type of norm to be applied to residuals" ,
124- .default_value = POROFLUIDMULTIPHASE::norm_l2 }),
128+ .default_value = VectorNorm::l2 }),
125129
126130 deprecated_selection<VectorNorm>(" VECTORNORM_INC" ,
127131 {
128- {" L1" , POROFLUIDMULTIPHASE::norm_l1 },
129- {" L1_Scaled" , POROFLUIDMULTIPHASE::norm_l1_scaled },
130- {" L2" , POROFLUIDMULTIPHASE::norm_l2 },
131- {" Rms" , POROFLUIDMULTIPHASE::norm_rms },
132- {" Inf" , POROFLUIDMULTIPHASE::norm_inf },
132+ {" L1" , VectorNorm::l1 },
133+ {" L1_Scaled" , VectorNorm::l1_scaled },
134+ {" L2" , VectorNorm::l2 },
135+ {" Rms" , VectorNorm::rms },
136+ {" Inf" , VectorNorm::inf },
133137 },
134138 {.description = " type of norm to be applied to residuals" ,
135- .default_value = POROFLUIDMULTIPHASE::norm_l2 }),
139+ .default_value = VectorNorm::l2 }),
136140
137141 // Iterationparameters
138142 parameter<double >(
@@ -144,25 +148,25 @@ void POROFLUIDMULTIPHASE::set_valid_parameters(std::map<std::string, Core::IO::I
144148
145149 deprecated_selection<InitialField>(" INITIALFIELD" ,
146150 {
147- {" zero_field" , initfield_zero_field },
148- {" field_by_function" , initfield_field_by_function },
149- {" field_by_condition" , initfield_field_by_condition },
151+ {" zero_field" , InitialField::zero },
152+ {" field_by_function" , InitialField::by_function },
153+ {" field_by_condition" , InitialField::by_condition },
150154 },
151- {.description = " Initial Field for transport problem" ,
152- .default_value = initfield_zero_field }),
155+ {.description = " Initial Field for the porofluid problem" ,
156+ .default_value = InitialField::zero }),
153157
154158 parameter<int >(
155159 " INITFUNCNO" , {.description = " function number for scalar transport initial field" ,
156160 .default_value = -1 }),
157161
158- deprecated_selection<DivContAct >(" DIVERCONT" ,
162+ deprecated_selection<DivergenceAction >(" DIVERCONT" ,
159163 {
160- {" stop" , divcont_stop },
161- {" continue" , divcont_continue },
164+ {" stop" , DivergenceAction::stop },
165+ {" continue" , DivergenceAction::continue_anyway },
162166 },
163167 {.description =
164168 " What to do with time integration when Newton-Raphson iteration failed" ,
165- .default_value = divcont_stop }),
169+ .default_value = DivergenceAction::stop }),
166170
167171 parameter<int >(
168172 " FLUX_PROJ_SOLVER" , {.description = " Number of linear solver used for L2 projection" ,
@@ -171,11 +175,11 @@ void POROFLUIDMULTIPHASE::set_valid_parameters(std::map<std::string, Core::IO::I
171175
172176 deprecated_selection<FluxReconstructionMethod>(" FLUX_PROJ_METHOD" ,
173177 {
174- {" none" , gradreco_none },
175- {" L2_projection" , gradreco_l2 },
178+ {" none" , FluxReconstructionMethod::none },
179+ {" L2_projection" , FluxReconstructionMethod::l2 },
176180 },
177181 {.description = " Flag to (de)activate flux reconstruction." ,
178- .default_value = gradreco_none }),
182+ .default_value = FluxReconstructionMethod::none }),
179183
180184 // functions used for domain integrals
181185 parameter<std::string>(" DOMAININT_FUNCT" ,
0 commit comments