ENH: provide machine/OpenFOAM architecture hint in output files (issue #271)
FoamFile { version 2.0; format binary; arch "LSB;label=32;scalar=64"; class vectorField; object points; } There is otherwise no simple indication in any of the files as to the sizes used (Int32 vs Int64, SP vs DP). This makes it difficult for the end-user and also for any third-party consumers. -- The architecture information contains three items in the following format: (LSB|MSB);label=(32|64);scalar=(32|64) - The endian value always appears first, without any leading space. This make it trivial to check later. Either the first 3 letters (LSB vs MSB) or even just the first letter ('L' vs 'M'). - Subsequent key=value pairs for 'label' and 'scalar' are separated by semicolons. The ordering of label vs scalar is not specified. Note that this 'arch' information is purely informational. It is currently not used by the OpenFOAM input mechanism itself.
Please register or sign in to comment