Skip to content

Commit

Permalink
Add error message for depreciated option to compute volume-
Browse files Browse the repository at this point in the history
weighted sum over a sub-domain (removed in commit 4ddf95c).
  • Loading branch information
cgilet committed Sep 28, 2022
1 parent 4ddf95c commit 5e30aca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/NavierStokesBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,12 @@ NavierStokesBase::Initialize ()
AMREX_ASSERT(Nbuf_outflow >= 0);
AMREX_ASSERT(!(Nbuf_outflow <= 0 && do_derefine_outflow == 1));

// Provide error message for depreciated volume weighted sum over a sub-domain.
// NSB only ever supported cylinder sub-domains, so check for that one.
if (pp.contains("volWgtSum_sub_dz")) {
Abort("Computing volume weighted sum over sub-domains is no longer supported. If desired, submit an issue on github");
};

// Are we going to do velocity or momentum update?
pp.query("do_mom_diff",do_mom_diff);

Expand Down

0 comments on commit 5e30aca

Please sign in to comment.