Copies the refinement marker from the master to the sub-application.
More...
#include <LevelSetMeshRefinementTransfer.h>
Copies the refinement marker from the master to the sub-application.
Definition at line 23 of file LevelSetMeshRefinementTransfer.h.
◆ LevelSetMeshRefinementTransfer()
LevelSetMeshRefinementTransfer::LevelSetMeshRefinementTransfer |
( |
const InputParameters & |
parameters | ) |
|
◆ execute()
void LevelSetMeshRefinementTransfer::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 66 of file LevelSetMeshRefinementTransfer.C.
69 MultiAppCopyTransfer::execute();
73 for (
unsigned int i = 0; i < _multi_app->numGlobalApps(); i++)
74 if (_multi_app->hasLocalApp(i))
76 FEProblemBase & to_problem = _multi_app->appProblemBase(i);
77 Adaptivity & adapt = to_problem.adaptivity();
78 adapt.setAdaptivityOn(
true);
79 to_problem.adaptMesh();
80 adapt.setAdaptivityOn(
false);
◆ initialSetup()
void LevelSetMeshRefinementTransfer::initialSetup |
( |
| ) |
|
|
overridevirtual |
Definition at line 47 of file LevelSetMeshRefinementTransfer.C.
49 FEProblemBase & from_problem = _multi_app->problemBase();
50 for (
unsigned int i = 0; i < _multi_app->numGlobalApps(); i++)
51 if (_multi_app->hasLocalApp(i))
53 FEProblemBase & to_problem = _multi_app->appProblemBase(i);
54 MooseVariable & to_var = to_problem.getStandardVariable(0, _to_var_name);
55 Adaptivity & adapt = to_problem.adaptivity();
56 adapt.setMarkerVariableName(to_var.name());
57 adapt.setCyclesPerStep(from_problem.adaptivity().getCyclesPerStep());
59 adapt.setUseNewSystem();
60 adapt.setMaxHLevel(from_problem.adaptivity().getMaxHLevel());
61 adapt.setAdaptivityOn(
false);
The documentation for this class was generated from the following files: