Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/setup/set_background_pressure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void incflo::set_background_pressure ()
delp_dir = dir;
m_gp0[dir] = -m_delp[dir] / problen[dir];
} else {
amrex::Abort("set_background_pressure: how did this happen?");
amrex::Abort("set_background_pressure: only one dimension can have delp");
}
}
}
Expand All @@ -40,7 +40,7 @@ void incflo::set_background_pressure ()
m_gp0[dir] = (m_bc_pressure[Orientation(dir,Orientation::high)]
- m_bc_pressure[Orientation(dir,Orientation::low)]) / problen[dir];
} else {
amrex::Abort("set_background_pressure: how did this happen?");
amrex::Abort("set_background_pressure: only one dimension can be pressure inflow/outflow");
}
}
}
Expand All @@ -51,8 +51,10 @@ void incflo::set_background_pressure ()
if (delp_dir == -1) {
delp_dir = dir;
m_gp0[dir] = dpdx;
} else if (delp_dir != dir) {
m_gp0[dir] = dpdx;
} else {
amrex::Abort("set_background_pressure: how did this happen?");
amrex::Abort("set_background_pressure: check gravity");
}
}
}
Expand Down
Loading