1. 04 Oct, 2017 2 commits
  2. 29 Sep, 2017 1 commit
    • Mark Olesen's avatar
      ENH: adjust infoSwitch to report host subscription (related to #531) · a56a70b7
      Mark Olesen authored
      - this compact form shows the subscription per host in the unsorted
        mpi order
      
            nProcs : 18
            Hosts  :
            (
                (node1 6)
                (node2 8)
                (node3 4)
            )
      
        This provides a succinct overview of which hosts have been
        subscribed or oversubscribed.
      
      - The longer list of "slave.pid" ... remains available on the
        InfoSwitch 'writeHosts'
      a56a70b7
  3. 22 Sep, 2017 1 commit
  4. 26 Sep, 2017 1 commit
  5. 22 Sep, 2017 1 commit
  6. 21 Sep, 2017 2 commits
    • Mark Olesen's avatar
      ENH: improve input stringency for argList options · 66104f25
      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.
      66104f25
    • Mark Olesen's avatar
      a4e63e2b
  7. 18 Sep, 2017 1 commit
    • 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
  8. 15 Sep, 2017 1 commit
  9. 29 Aug, 2017 1 commit
    • 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
  10. 15 Aug, 2017 1 commit
  11. 14 Aug, 2017 1 commit
  12. 11 Aug, 2017 1 commit
  13. 10 Aug, 2017 2 commits
  14. 03 Aug, 2017 3 commits
    • Mark Olesen's avatar
      8682e047
    • Mark Olesen's avatar
      STYLE: return const char* in CStringList::data() · 41c103b7
      Mark Olesen authored
      - and other code style adjustments
      41c103b7
    • Mark Olesen's avatar
      STYLE: manage dictionary inputMode directly within entry class · 5148e4f8
      Mark Olesen authored
      - The logic for switching input-mode was previously completely
        encapsulated within the #inputMode directive, but without any
        programming equivalent. Furthermore, the encapsulation in inputMode
        made the logic less clear in other places.
      
        Exposing the inputMode as an enum with direct access from entry
        simplifies things a fair bit.
      
      - eliminate one level of else/if nesting in entryIO.C for clearer logic
      
      - for dictionary function entries, simply use
        addNamedToMemberFunctionSelectionTable() and avoid defining a type()
        as a static. For most function entries the information is only used
        to get a name for the selection table lookup anyhow.
      5148e4f8
  15. 02 Aug, 2017 2 commits
    • Mark Olesen's avatar
      ENH: static versions of fileName clean(), path(), name() · 46a2a736
      Mark Olesen authored
      - useful operations for other string representations of fileName types.
      
        The return type is in general a std::string with any narrowing
        being done by the caller on the return value.
      46a2a736
    • Mark Olesen's avatar
      ENH: consolidate, cleanup some string methods · e70fc616
      Mark Olesen authored
      - consolidate word::validated() into word::validate() and also allow
        as short form for string::validate<word>(). Also less confusing than
        having similarly named methods that essentially do the same thing.
      
      - more consistent const access when iterating over strings
      
      - add valid(char) for keyType and wordRe
      e70fc616
  16. 31 Jul, 2017 1 commit
  17. 29 Jul, 2017 2 commits
    • Mark Olesen's avatar
      ENH: more graceful handling of invalid IOobject headers (issue #539) · 9923ec96
      Mark Olesen authored
      - With special-purpose templating it is possible to have file contents
        that almost look like an OpenFOAM file, but which are not.
        The contents do not need to be deliberately tricky, even the simplest
        README:
      
            FoamFile is the first word parsed in OpenFOAM files
      
        will trigger problems.
        We now trap any IOerror on these and reject this type of file as invalid.
      9923ec96
    • Mark Olesen's avatar
      ENH: additional method for switching error throwing on/off (issue #552) · 797155f8
      Mark Olesen authored
      - error::throwExceptions(bool) returning the previous state makes it
        easier to set and restore states.
      
      - throwing() method to query the current handling (if required).
      
      - the normal error::throwExceptions() and error::dontThrowExceptions()
        also return the previous state, to make it easier to restore later.
      797155f8
  18. 22 Jul, 2017 1 commit
  19. 21 Jul, 2017 1 commit
  20. 20 Jul, 2017 2 commits
  21. 19 Jul, 2017 2 commits
  22. 18 Jul, 2017 1 commit
  23. 17 Jul, 2017 4 commits
  24. 14 Jul, 2017 3 commits
  25. 31 Jul, 2017 1 commit
  26. 14 Sep, 2017 1 commit