Skip to content

Commit

Permalink
fem_system_ex2 local->distributed solution
Browse files Browse the repository at this point in the history
There doesn't seem to be any way to get this behavior back in reinit()
without creating a performance regression: most applications simply
never need to move data in that direction.

Refs #1593.
  • Loading branch information
roystgnr authored and jwpeterson committed Feb 17, 2018
1 parent 39d1580 commit 11bf820
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/fem_system/fem_system_ex2/fem_system_ex2.C
Expand Up @@ -82,7 +82,9 @@ void setup(EquationSystems & systems,
imms.save_initial_mesh();

// Fill global solution vector from local ones
aux_sys.reinit();
aux_sys.current_local_solution->close();
*aux_sys.solution = *aux_sys.current_local_solution;
aux_sys.solution->close();
}


Expand Down Expand Up @@ -119,7 +121,9 @@ void run_timestepping(EquationSystems & systems, GetPot & args)

out << "Solving Solid" << std::endl;
solid_system.solve();
aux_system.reinit();
aux_system.current_local_solution->close();
*aux_system.solution = *aux_system.current_local_solution;
aux_system.solution->close();

// Carry out the adaptive mesh refinement/coarsening
out << "Doing a reinit of the equation systems" << std::endl;
Expand Down

0 comments on commit 11bf820

Please sign in to comment.