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

Non-conform dataset sizes when importing profiles from HDF5 file[BUG] #159

Open svenreiche opened 5 months ago

svenreiche commented 5 months ago

Describe the bug If one use the feature &profile_file but define an dataset which is not a 1D dataset, the code will crash.

To Reproduce Generate a HDF5 file with a 2D dataset Import in the main input file as a profile

Expected behavior At least give error message and exit nicely

Additional context Add any other context about the problem here.