Closed dpzimmer closed 3 years ago
Thanks for your contribution.
That particular check occurs six times in mat5.c and I guess, it needs to be fixed everywhere consistently.
Do you have an example file that you could share. Thanks.
Thanks for your contribution.
That particular check occurs six times in mat5.c and I guess, it needs to be fixed everywhere consistently.
Do you have an example file that you could share. Thanks.
example attached;
Thanks for the MAT file.
I also checked the sources of SWAN and it is exactly that one relevant line that needs to be adapted.
Slight modification to Mat_VarReadNextInfo5() to allow MAT_T_INT32 in addition to MAT_T_UINT32 to indicate processing of array_flags.
This formatting was encountered processing older .mat files created by older versions of the swan model (https://www.tudelft.nl/en/ceg/about-faculty/departments/hydraulic-engineering/sections/environmental-fluid-mechanics/research/swan/).
I have no idea if this violates the file format specification, but Matlab and libmat.lib both read such files without complaint.