diff options
-rw-r--r-- | src/GRHydro_CalcUpdate.F90 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GRHydro_CalcUpdate.F90 b/src/GRHydro_CalcUpdate.F90 index e365a36..dc59641 100644 --- a/src/GRHydro_CalcUpdate.F90 +++ b/src/GRHydro_CalcUpdate.F90 @@ -242,7 +242,7 @@ subroutine UpdateCalculation(CCTK_ARGUMENTS) else if (CCTK_EQUALS(method_type, "Flux split FD")) then - if (transport_constraints .ne. 0) then + if (evolve_mhd.ne.0 .and. transport_constraints .ne. 0) then call CCTK_WARN(0, "Not supported") end if @@ -296,7 +296,8 @@ subroutine UpdateCalculation(CCTK_ARGUMENTS) end if - if (transport_constraints.ne.0 .and. flux_direction.eq.1) then ! HACK: x direction is last + if (evolve_mhd.ne.0 .and. transport_constraints.ne.0 .and. & + flux_direction.eq.1) then ! HACK: x direction is last ! FIXME: I think one could wrap all of this into a single do loop and remove the ! Evec storage !$OMP PARALLEL DO PRIVATE(i,j,k) |