Skip to content
Snippets Groups Projects
Commit 4d9c49d0 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Only enable FPI if the state shall evolve

Use size_t
parent 771167f4
No related branches found
No related tags found
No related merge requests found
......@@ -236,8 +236,11 @@ int main(int argc, char *argv[]) {
u4_diff[i][0] /= refinement_factor;
}
for (int state_fpi = 0;
state_fpi < parset.get<int>("solver.tnnmg.fixed_point_iterations");
auto const fixed_point_iterations =
parset.get<bool>("boundary.friction.state.evolve")
? parset.get<size_t>("solver.tnnmg.fixed_point_iterations")
: 1;
for (size_t state_fpi = 0; state_fpi < fixed_point_iterations;
++state_fpi) {
auto myGlobalNonlinearity =
assemble_nonlinearity<VectorType, OperatorType>(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment