-
Notifications
You must be signed in to change notification settings - Fork 509
Description
Main issue
Uncompressed binaries use only 10 characters for the channel names when OutFmt = 4 i.e. FileID = FileFmtID_NoCompressWithoutTime = 3 , see e.g:
openfast/modules/nwtc-library/src/NWTC_IO.f90
Line 5011 in df84035
| ChanLen2 = 10 |
openfast/modules/nwtc-library/src/NWTC_IO.f90
Line 6883 in df84035
| LenName = 10 |
Suggested solution
The maximum number of characters for the channel length should be written to the file to have a similar behavior for compressed and uncompressed binaries, and ASCII files.
Since uncompressed binaries are not too commonly used at the moment, I suggest that when OutFmt = 4 OpenFAST writes an uncompressed binary file with one extra field for the channel length (similar to what is done for FileFmtID_ChanLen_In).
For backward compatbility, we can introduce a new "FileID" in the binary file, e.g. FileID = FileFmtID_NoCompressWithoutTime_ChanLen_In=5 .