Skip to content

Commit

Permalink
update BC handling
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Nov 11, 2024
1 parent 7ba9d5f commit fa39839
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions inputs/precipitator_mhd_lowres.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ ox2_bc = periodic # outer-X2 boundary flag
nx3 = 128 # Number of zones in X3-direction
x3min = -100. # minimum value of X3
x3max = 100. # maximum value of X3
ix3_bc = user # inner-X3 boundary flag
ox3_bc = user # outer-X3 boundary flag
ix3_bc = precipitator_reflect_x3 # inner-X3 boundary flag
ox3_bc = precipitator_reflect_x3 # outer-X3 boundary flag


<parthenon/meshblock>
Expand Down
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ int main(int argc, char *argv[]) {
} else if (problem == "precipitator") {
Hydro::ProblemInitPackageData = precipitator::ProblemInitPackageData;
pman.app_input->ProblemGenerator = precipitator::ProblemGenerator;
pman.app_input->boundary_conditions[parthenon::BoundaryFace::inner_x3] =
precipitator::ReflectingInnerX3;
pman.app_input->boundary_conditions[parthenon::BoundaryFace::outer_x3] =
precipitator::ReflectingOuterX3;
pman.app_input->RegisterBoundaryCondition(parthenon::BoundaryFace::inner_x3,
"precipitator_reflect_x3", precipitator::ReflectingInnerX3);
pman.app_input->RegisterBoundaryCondition(parthenon::BoundaryFace::outer_x3,
"precipitator_reflect_x3", precipitator::ReflectingOuterX3);
pman.app_input->UserMeshWorkBeforeOutput = precipitator::UserMeshWorkBeforeOutput;
Hydro::ProblemSourceUnsplit = precipitator::AddUnsplitSrcTerms;
Hydro::ProblemSourceFirstOrder = precipitator::AddSplitSrcTerms;
Expand Down

0 comments on commit fa39839

Please sign in to comment.