svenreiche / Genesis-1.3-Version4

Time-dependent, 3D Code to simulate the amplification process of a Free-electron Laser.
GNU General Public License v3.0
53 stars 26 forks source link

check if output directory exists and is writable #168

Closed ZeugAusHH closed 3 months ago

ZeugAusHH commented 4 months ago

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.