The accuracy test case is run at the command line with
make testThis will compile the local initial and boundary condition files and link them with the executable
../../sun. The script accuracy.sh loops through different
time step sizes given by
accuracy.sh script finishes, the results are analyzed with the code in accuracy.c,
which computes Error results (Error(n)/Error(0)): Your results: -------------------------------------------------- dt0/dt U W S Q Q0 h -------------------------------------------------- 1 1.0 1.0 1.0 1.0 1.0 1.0 2 3.9 3.9 4.0 4.1 1.2 4.0 4 15.6 15.5 16.2 16.4 2.1 16.4 8 65.1 64.8 68.1 68.9 4.4 69.1 16 324.7 323.5 340.6 344.8 12.8 345.9 Reference results: 1 1.0 1.0 1.0 1.0 1.0 1.0 2 3.9 3.9 4.0 4.1 1.2 4.0 4 15.6 15.5 16.2 16.4 2.1 16.4 8 65.1 64.8 68.1 68.9 4.4 69.1 16 324.7 323.5 340.6 344.8 12.8 345.9 Difference (relative): 1 0.00 0.00 0.00 0.00 0.00 0.00 2 -0.00 0.00 0.00 0.00 0.00 -0.00 4 -0.00 0.00 0.00 0.00 0.00 -0.00 8 -0.00 0.00 0.00 0.00 0.00 -0.00 16 -0.00 0.00 0.00 0.00 0.00 -0.00The code outputs the results from the current run, then displays the results that have been saved from a working version of this simulation, and then plots the relative difference between your results and the stored results as
dt0/dt:
U: Horizontal velocity.
W: Vertical velocity
S: Salinity (or density, since Q: Nonhydrostatic pressure using the second-order Adams-Bashforth extrapolation
using the last two time steps (for details see Fringer et al. [2]).
Q0: Nonhydrostatic pressure without the extrapolation of Q.
h: Free surface.