src/test/time.c

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "navier-stokes/centered.h"

double tEnd = 1.;

int main() {
  run();
}

event logfile (i++) {
  fprintf (stderr, "%d %g %g\n", i, t, dt);
  assert (dt > 0.01);
}

event every30 (t += tEnd/30.; t <= tEnd) {
  fprintf (stderr, "every30 %g\n", t);
}

event end (t = tEnd) {
  fprintf (stderr, "tEnd %g\n", t);  
}