Commits

Anonymous committed 01ff89e

NS: Tweaks.

  • Participants
  • Parent commits f8ac3b1

Comments (0)

Files changed (2)

File examples/mpi-navier-stokes/src/hooks.f90

     character(len=256)     :: fname
     type(carray4), pointer :: qend
 
+    if (state%iter < 0) return
+
     call c_f_pointer(level%qend, qend)
 
     write(fname, "('s',i0.5,'i',i0.3,'l',i0.2,'.npy')") &

File pf/convergence.py

   for step, aiter, alev in product(steps, iters, levels):
     ref = cache.get(rmap[step*trat, riter, rlev])
     app = cache.get(amap[step, aiter, alev])
-    err = abs(ref - app).max()
-    errors[step, aiter, alev] = err
+    try:
+      err = abs(ref - app).max()
+      errors[step, aiter, alev] = err
+    except:
+      print 'WARNING: size mismatch:', step, aiter, alev
 
   return errors, steps, iters, levels