Atlantis ends a fatal error with quit(), which prints the error to
stderr and exits with status 0, leaving the output written so far. The
exit status therefore does not tell a completed run from a crashed one:
only the time reached by the main output does. A run counts as complete
if the last time step of its main output is within one output interval
(toutinc) of the end of the run (tstop).
Value
An atlantis_check data frame, one row per finding, with columns
file, check, severity ("error", "warning" or "note"), key
(the variable) and message.
Details
The checks (column check of the result) are:
"missing"(error): no main output, the run failed before writing it;"unreadable"(error): the main output cannot be opened;"incomplete"(error): the main output stops beforetstop.
tstop and toutinc are read as Atlantis reads them: their first
occurrence, in their unit if Atlantis knows it as written, in seconds
otherwise. tstop 365 day is 365
days, but tstop 365 days and tstop 365 are 365 seconds (see the
"units" check of check_prm()).
See also
check_prm() for the parameter files.
Examples
check_run(
system.file("examples", "outputs", "output.nc", package = "atlantio"),
system.file("examples", "inputs", "tiny_run.prm", package = "atlantio")
)
#> ✔ No problem found.
