~fluidity-core/fluidity/sediment_restructure

« back to all changes in this revision

Viewing changes to tests/IGW/square_rnd_h.py

merge with branch including remap_surface_to_field but then removed this change and approached it a different way which seems to work

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
def val(X,t):
2
 
   from random import random
3
 
   if X[0]<0.0001 or X[0]>0.9999 or X[1]<0.0001 or X[1]>0.9999:
4
 
      return 0.0
5
 
   else:
6
 
      return random()