If the user provides the outputdir parameter in &setup, now a zero-byte temporary file is generated (and then deleted) in the directory.
This test ensures that the output directory exists and is writable. The simulation stops at the &setup block should this test fail. So far, the simulation would proceed with the numerically expensive tracking and only crash when about to generate the first output file.
If the user provides the
outputdir
parameter in&setup
, now a zero-byte temporary file is generated (and then deleted) in the directory.This test ensures that the output directory exists and is writable. The simulation stops at the
&setup
block should this test fail. So far, the simulation would proceed with the numerically expensive tracking and only crash when about to generate the first output file.