Skip to content

Commit 75e958e

Browse files
Make mask IO unit tests deterministic (#2310)
1 parent 64c9e59 commit 75e958e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/InputOutput/unit_spectralelement2d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ end
124124
Y = Fields.FieldVector(y0 = y0)
125125

126126
Spaces.set_mask!(space) do coords
127-
rand() > 0.5
127+
sin(coords.x) > 0.5
128128
end
129129

130130
# write field vector to hdf5 file

0 commit comments

Comments
 (0)