Lists the problems of Atlantis parameter files that Atlantis reads
silently (or reads differently from read_prm()), and combinations of
flags known to give wrong results. The files are scanned line by line, so
a malformed array does not stop the other checks (it does stop
read_prm()).
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 on every file (column check of the result) are:
"count"(error): an array whose declared length differs from the number of values on the next line; Atlantis pads with the last value or ignores the extra values,read_prm()aborts;"duplicate": a key given twice. In the run file, an error: Atlantis reads the first occurrence (the last for the contaminant names and units), whileread_prm()keeps the last. In the other files, a warning: Atlantis may also read another occurrence thanread_prm();"line_endings"(warning): Windows (CRLF) line endings;"tabs"(note): tabs as separators.
The checks on the run file are:
"units": the units after the times, which Atlantis reads in seconds (dt,tstop,toutstart,toutinc,toutfinc,tburnday,tsumout,checkstartandcheckstop). Atlantis converts a value with its unit only if the unit is spelled exactly as one ofus,usec,ms,msec,s,sec,second,min,minute,h,hr,hour,d,dayorweek; otherwise it ignores the unit and reads the value in seconds. Error for a unit Atlantis ignores, e.g.days,Dayoryear, or a unit that ends a line with Windows line endings (Atlantis reads the carriage return as part of it); note listing the units it converts;"unknown"(note): keys missing from the run template.
And the checks across files, which need bio (and force for the last
one), for every group stocked (flagstocking<GRP> 1 or
flagrecruit<GRP> 18, both read from the MultRects time series):
"stocked_twice"(error):flagstocking<GRP> 1withflagrecruit<GRP> 18, which adds the series twice;"random_spawn"(warning):flagrandom 1, which moves the spawn day by up to 14 days, while groups are stocked: the series is read on the spawn day only;"spawn_day": years whose stocking is never read because no non-zero value falls on the group's spawn day (<GRP>_Time_Spawn, on a 365-day year); error if no stocking is delivered at all, warning otherwise. The time series are assumed to start with the run.
See also
check_init() for the initial-conditions file.
