Skip to content
Snippets Groups Projects
  1. Aug 02, 2019
    • Mark OLESEN's avatar
      ENH: rationalize cloud method inheritance · e90eafcf
      Mark OLESEN authored
      - a top-level cloud::nParcels() virtual, which is overloaded by the
        first level of Cloud inheritance. This permits quick determination of
        cloud sizes, even when retrieved from registry with the base level.
        Eg,
            cloud* cldPtr = mesh.cfindObject<cloud>("myCloud");
            label nParcels = (cldPtr ? cldPtr->nParcels() : 0);
      
      - make writeLagrangianPositions on by default unless explicitly
        disabled in the InfoSwitches.
      
        Flag output errors (where neither coordinates nor positions are
        written) with Fatal.
      
      - additional IOField helper functions in cloud
      
      STYLE: simplify iterator inheritance
      e90eafcf
  2. Aug 06, 2019
  3. Aug 05, 2019
  4. Jul 29, 2019
  5. Aug 02, 2019
  6. Aug 01, 2019
    • Mark OLESEN's avatar
      ENH: support search options on more dictionary methods · 89bc42dd
      Mark OLESEN authored
      - can now specify literal matches for sub-dictionary methods:
      
          isDict(key, keyType::REGEX)
          optionalSubDict(key, keyType::REGEX)
          subDict(key, keyType::REGEX)
          subOrEmptyDict(key, keyType::REGEX, mandatory)
      
      There is no change in behaviour of the methods, just the search option
      is now exposed as an optional parameter.
      
      NOTE: minor breaking change for subOrEmptyDict()
      
        old: subOrEmptyDict(key, bool=false)
        new: subOrEmptyDict(key, keyType::option=keyType::REGEX, bool=false)
      
        This affects code that previously explicitly set the bool parameter.
        Within OpenFOAM itself, this only affected a single file:
      
            KinematicCloud.C
      89bc42dd
  7. Jul 31, 2019
    • Mark OLESEN's avatar
      ENH: make OSstream indentation adjustable · 8b3d77ba
      Mark OLESEN authored
      - this is principally for cases where reduced indentation is desired,
        such as when streaming to a memory location. If the indentation size
        is zero or one, only a single space will be used to separate the
        key/value.
      
        This change does not affect the stream allocation size, since the
        extra data falls within the padding.
      
      ENH: relocate label/scalar sizes from Istream to IOstream.
      
      - could allow future use for output streams as well?
      
        Due to padding, reorganization has no effect on allocated size
        of output streams.
      
      STYLE: add read/write name qualifier to beginRaw, endRaw
      
      - removes ambiguity for bi-directional streams
      
      STYLE: fix inconsistent 'const' qualifier on std::streamsize
      
      - base Ostream was without const, some derived streams with const
      8b3d77ba
    • Mark OLESEN's avatar
      ENH: add OListStream::swap(DynamicList<char>&) · 6f8da834
      Mark OLESEN authored
      - allows full recovery of allocated space, not just addressable range.
      
        This can be particularly useful for code patterns that repeatedly
        reuse the same buffer space. For example,
      
            DynamicList<char> buf(1024);
      
            // some loop
            {
                OListStream os(std::move(buf));
                os << ...
      
                os.swap(buf);
            }
      
         Can read back from this buffer as a second operation:
      
            {
                UIListStream is(buf);
                is >> ...
            }
      6f8da834
  8. Jul 30, 2019
  9. Aug 02, 2019
  10. Aug 07, 2019
  11. Jul 30, 2019
  12. Jul 31, 2019
  13. Jul 30, 2019
    • Mark OLESEN's avatar
      ENH: improvements for handling update of build information · 59b867b7
      Mark OLESEN authored
      - When building OpenFOAM for different platform combinations
        (single/double, int32/int64) the build information that is compiled
        into the OpenFOAM lib can become out of sync.
      
        This is because the update trigger (wmakeBuildInfo -check) is
        independent of the targetted platform. The added file
        'src/OpenFOAM/Alltouch' provides a direct means of forcing a rebuild
        of the version information. Eg,
      
            src/OpenFOAM/Alltouch
            wmake src/OpenFOAM
      
        Also provide an additional 'wmakeBuildInfo -remove' to forcibly
        remove META-INFO/build-info, if that is desired.
      59b867b7
    • Mark OLESEN's avatar
      TUT: binary output for windAroundBuildings · d4454ab6
      Mark OLESEN authored
      d4454ab6
  14. Aug 01, 2019
  15. Jul 29, 2019
    • Mark OLESEN's avatar
      STYLE: inconsistent use of readBeginList() · 80fb4da9
      Mark OLESEN authored
      - use readBegin() when the only delimiters are '()' and not '({})'
      80fb4da9
    • Mark OLESEN's avatar
      ENH: support low-level reading of raw binary blocks (#1378) · bdc1c9bf
      Mark OLESEN authored
      - symmetric with writeRaw() etc for the output stream. These are
        methods that are not required by normal users, but which provide
        a finer granularity for reading.
      
      - additional information about the current stream position when
        endList fails. This may help when tracing errors.
      
      STYLE: change return type of beginRaw()/endRaw() to bool
      
      - was of type Ostream& for output, but return value was unused.
        Having bool may be better for encapsulating logic
      
      STYLE: remove unused Istream::readEndBegin() function
      bdc1c9bf
  16. Jul 28, 2019
  17. Jul 26, 2019
  18. Jul 23, 2019
  19. Jul 30, 2019
  20. Jul 19, 2019
  21. Jul 18, 2019