aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ADMConstraints.F9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ADMConstraints.F b/src/ADMConstraints.F
index 803d2d8..82c00f8 100644
--- a/src/ADMConstraints.F
+++ b/src/ADMConstraints.F
@@ -128,10 +128,11 @@ c Calculate constraints.
if (use_mask .eq. 1) then
if (abs(emask(i,j,k)-1) > 0.001) then
docalc = .FALSE.
- elseif (check_excision_bitmask .ne. 0 .and.
- . SpaceMask_CheckStateBitsF90(space_mask, i, j, k,\
- ex_field, ex_type_excised)) then
- docalc = .FALSE.
+ elseif (check_excision_bitmask .ne. 0) then
+ if (SpaceMask_CheckStateBitsF90(space_mask, i, j, k,\
+ ex_field, ex_type_excised)) then
+ docalc = .FALSE.
+ end if
end if
end if