Open veenstrajelmer opened 1 year ago
@veenstrajelmer : You're quite right, I can see that in the kernel code:
character(len=1024):: md_obsfile = ' ' !< File containing observation points (e.g., *_obs.xyn, *_obs.ini)
character(len=255) :: md_crsfile = ' ' !< File containing cross sections (e.g., *_crs.pli, observation cross section *_crs.ini)
Will fix it over there --> https://issuetracker.deltares.nl/browse/UNST-6813
I have tested the behaviour when a file is given with multiline obs/crs files, but without \
, so like this:
ObsFile = ../../../geometry/output_locations_v2b/rmm_vzm-j19_6-v2b_1_kilometer_obs.xyn # Points file *.xyn with observation stations with rows x, y, station name
../../../geometry/output_locations_v2b/rmm_vzm-j19_6-v2b_2_output_obs.xyn
../../../geometry/output_locations_v2b/rmm_vzm-j19_6-v2b_3_measurement_obs.xyn
In this case, only the first filename is being read. I would expect a parsing error since the lines below should fail to read somewhere. Since they are not comments, I would say it should raise an error.
There was a multiline method implemented in kernel+GUI with
\
as a separator, to be used for obs/crs files and maybe others. This is an example snippet from the mdu:hydrolib-core does not support this and raises the following:
This happens for the
\
at the end of the line, which makes sense to me and I wonder whether it should be supported or removed from kernel+gui instead. The latter makes more sense to me since I expect this is non-standard ini-formatting.Additional information
OpenDA also crashes on this type of input
And a fun fact, the FM kernel crashes on too long space-delimited input (but only for crs, obs works fine):
Gives: