Skip to content
Snippets Groups Projects
  1. Oct 11, 2017
  2. Oct 09, 2017
  3. Oct 05, 2017
  4. Oct 04, 2017
  5. Sep 29, 2017
  6. Sep 28, 2017
  7. Sep 27, 2017
  8. Sep 26, 2017
  9. Sep 25, 2017
  10. Sep 22, 2017
    • Mark OLESEN's avatar
      STYLE: minor cleanup after merge · 4996ac85
      Mark OLESEN authored
      4996ac85
    • Mark OLESEN's avatar
      ENH: improve input stringency for argList options · 13f04876
      Mark OLESEN authored
      Previously:
      
        - bad command-line input such as -label 1234xyz would parse as a
          label (with value 1234) and the trailing junk would be silently
          ignored. This may or may not be appropriate. If the trailing junk
          looked like this '100E' or '1000E-' (ie, forgot to type the
          exponent), the incorrectly parsed values can be quite bad:
      
              label  = 32684
              scalar = 6.93556e-310
      
      Now:
      
        - use the updated readLabel/readScalar routines that trigger a
          FatalIOError on bad input:
      
              --> FOAM FATAL IO ERROR:
              Trailing content found parsing '1234xyz'
      
              --> FOAM FATAL IO ERROR:
              Trailing content found parsing '100E'
      
         This traps erroneous command-line input immediately.
      13f04876
    • Mark OLESEN's avatar
      1c649817
    • Mark OLESEN's avatar
      ENH: improve consistency in parsing primitives from strings (issue #590) · 41f59b07
      Mark OLESEN authored
      - Any trailing whitespace when parsing from strings or character buffers
        is ignored rather than being treated as an error. This is consistent
        with behaviour when reading from an Istream and with leading whitespace
        being ignored in the underlying atof/atod, strtof/strtod... functions.
      
      - Allow parsing directly from a std::string instead of just from a 'char*'.
        This reflects the C++11 addition of std::stod to complement the C
        functions strtod. This also makes it easier to parse string directly
        without using an IStringStream.
      
      - Two-parameter parsing methods return success/failure.
        Eg,
      
            if (readInt32(str, &int32Val)) ...
      
      - One-parameter parsing methods return the value on success or
        emit a FatalIOError.
        Eg,
      
            const char* buf;
            int32Val = readInt32(buf, &);
      
      - Improved consistency when parsing unsigned ints.
        Use strtoimax and strtoumax throughout.
      
      - Rename readDoubleScalar -> readDouble, readFloatScalar -> readFloat.
        Using the primitive name directly instead of the Foam typedef for
        better consistency with readInt32 etc.
      
      - Clean/improve parseNasScalar.
        Handle normal numbers directly, reduce some operations.
      41f59b07
    • Mark OLESEN's avatar
      STYLE: typo in doxygen string · 3cb9c66c
      Mark OLESEN authored
      3cb9c66c
    • Andrew Heather's avatar
      Merge branch 'integration-foundation' into 'develop' · 677564e9
      Andrew Heather authored
      Integration openfoam.org
      
      See merge request !144
      677564e9
    • Andrew Heather's avatar
      STYLE: Code clean-up · 884f2f86
      Andrew Heather authored
      884f2f86