Skip to content

Commit

Permalink
proper error checking for surfcov cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnonaka committed Feb 3, 2025
1 parent 182d86b commit 3b09d01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src_compressible_stag/main_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ void main_driver(const char* argv)
if (do_2D and slicepoint >= 0) {
Abort("Cannot use do_2D and slicepoint");
}
if (do_2D and n_ads_spec>0 and ads_wall_dir == 2) {
Abort("do_2D with n_ads_spec>0 requires ads_wall_dir != 2");
}
if (project_dir >= 0) {
if (do_slab_sf and ((membrane_cell <= 0) or (membrane_cell >= n_cells[project_dir]-1))) {
Abort("Slab structure factor needs a membrane cell within the domain: 0 < membrane_cell < n_cells[project_dir] - 1");
Expand Down

0 comments on commit 3b09d01

Please sign in to comment.