Skip to content

Commit

Permalink
Merge pull request #319 from bcaddy/dev-mhd3dFix
Browse files Browse the repository at this point in the history
Fix MHD Configuration checks
  • Loading branch information
evaneschneider authored Aug 25, 2023
2 parents 61ea81d + acb9250 commit 257b216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/error_handling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ void Check_Configuration(parameters const &P)
// MHD Checks
// ==========
#ifdef MHD
assert(P.nx > 1 or P.ny > 1 or P.nz > 1 and "MHD runs must be 3D");
assert(P.nx > 1 and P.ny > 1 and P.nz > 1 and "MHD runs must be 3D");

// Must use the correct integrator
#if !defined(VL) || defined(SIMPLE)
#if !defined(VL) || defined(SIMPLE) || defined(CTU)
#error "MHD only supports the Van Leer integrator"
#endif //! VL or SIMPLE

Expand Down

0 comments on commit 257b216

Please sign in to comment.