Skip to content

Commit

Permalink
Merge branch 'main' into negpress
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykalinani committed Nov 18, 2024
2 parents f4fd134 + 0861f77 commit 58e9c6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions AsterSeeds/src/1D_tests.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ extern "C" void Tests1D_Initialize(CCTK_ARGUMENTS) {
const eos_idealgas eos_th(gl_gamma, particle_mass, rgeps, rgrho, rgye);
const CCTK_REAL dummy_ye = 0.5;

const bool rot_off = ((rotate_angle_x == 0.0) && (rotate_angle_y == 0.0) && (rotate_angle_z == 0.0)) ? true : false;

if (CCTK_EQUALS(test_case, "equilibrium")) {

grid.loop_all_device<1, 1, 1>(
Expand Down Expand Up @@ -383,8 +385,8 @@ extern "C" void Tests1D_Initialize(CCTK_ARGUMENTS) {
return (abs(Bs(0)) > tiny) && (abs(Bs(1)) > tiny) && (abs(Bs(2)) > tiny);
};

if (are_all_components_nonzero(oldBls) ||
are_all_components_nonzero(oldBrs)) {
if ( (are_all_components_nonzero(oldBls) && !(rot_off)) ||
(are_all_components_nonzero(oldBrs) && !(rot_off)) ) {
CCTK_ERROR("All non-zero B components not supported yet.");
}

Expand Down

0 comments on commit 58e9c6c

Please sign in to comment.