Skip to content
Snippets Groups Projects
  1. Sep 18, 2017
    • Mark OLESEN's avatar
      ENH: improve consistency in parsing primitives from strings (issue #590) · accebc74
      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.
      accebc74
  2. Sep 15, 2017
  3. Sep 22, 2017
  4. Sep 21, 2017
  5. Sep 18, 2017
  6. Sep 15, 2017
  7. Sep 12, 2017
  8. Sep 11, 2017
  9. Sep 09, 2017
  10. Sep 08, 2017
  11. Sep 07, 2017
  12. Sep 06, 2017
  13. Aug 31, 2017
  14. Aug 30, 2017
  15. Aug 29, 2017
    • mattijs's avatar
      BUG: sampledTriSurfaceMesh: sampling outside of mesh. Fixes #575. · 0e7954c2
      mattijs authored
      There are a few issues:
      - error would only throw exceptions if not parallel
      - if we change this we also need to make sure the functionObjectList
        construction is synchronised
      - bounding box overlap was not returning the correct status so the code
        to avoid the issue of 'badly formed bounding box' was not triggered.
      0e7954c2
  16. Aug 28, 2017
  17. Aug 18, 2017
  18. Aug 17, 2017