Skip to content
Snippets Groups Projects
  1. Dec 22, 2016
  2. Dec 21, 2016
  3. Dec 20, 2016
  4. Dec 19, 2016
  5. Dec 18, 2016
  6. Dec 19, 2016
  7. Dec 18, 2016
  8. Dec 19, 2016
  9. Dec 18, 2016
    • Mark Olesen's avatar
      ENH: provide machine/OpenFOAM architecture hint in output files (issue #271) · 7acef189
      Mark Olesen authored
        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.
      7acef189