Skip to content
Snippets Groups Projects
  1. Apr 27, 2021
    • Mark OLESEN's avatar
      ENH: consolidate decomposition model, constructors for decomposition methods · 86f627b9
      Mark OLESEN authored
      - make regionName an optional constructor parameter, which eliminates
        a separate set of constructors and construction tables. Adjust
        internals to treat a missing/empty regionName as a no-op.
      
      - pass in fallback dictionary content via new IOdictionary constructor
        with a pointer
      
      ENH: further relax check for matching number of processor dirs
      
      - if the "numberOfSubdomains" entry is missing (or even zero)
        ignore checks of processor dirs as meaningless.
      86f627b9
  2. Apr 26, 2021
  3. Apr 23, 2021
  4. Apr 22, 2021
    • sergio's avatar
      BUG: Checking sum of multiComponent mixture species · 8878050f
      sergio authored
      Checking for the sum of species mass fraction in multiComponentMixture.
      It can't be zero at the internal field or patches. A fatal error is thrown.
      
      A warning was added if the mixture sum is different from one. In a
      re-start the mass fraction can be slightly unbounded and new
      normalization is required.
      8878050f
  5. Apr 19, 2021
    • Andrew Heather's avatar
      Merge branch 'feature-filename-regex-hashes' into 'develop' · f0035734
      Andrew Heather authored
      consistency improvements for regex and hashes, etc
      
      See merge request !442
      f0035734
    • Mark OLESEN's avatar
      ENH: improve dynamicCode consistency · cf906387
      Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
      - refactor and provision for additional code context
      cf906387
    • Mark OLESEN's avatar
      ENH: replace keyType with wordRe for matching selectors. · 2b7b3700
      Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
      - The keyType is primarily used within dictionary reading, whereas
        wordRe and wordRes are used for selectors in code.
        Unifying on wordRe and wordRes reduces the number matching options.
      2b7b3700
    • Mark OLESEN's avatar
      ENH: improve hashing overloads of string-types and HashTable/HashSet · 95cd8ee7
      Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
      - additional dummy template parameter to assist with supporting
        derived classes. Currently just used for string types, but can be
        extended.
      
      - provide hash specialization for various integer types.
        Removes the need for any forwarding.
      
      - change default hasher for HashSet/HashTable from 'string::hash'
        to `Hash<Key>`. This avoids questionable hashing calls and/or
        avoids compiler resolution problems.
      
        For example,
        HashSet<label>::hasher and labelHashSet::hasher now both properly
        map to Hash<label> whereas previously HashSet<label> would have
        persistently mapped to string::hash, which was incorrect.
      
      - standardize internal hashing functors.
      
        Functor name is 'hasher', as per STL set/map and the OpenFOAM
        HashSet/HashTable definitions.
      
        Older code had a local templated name, which added unnecessary
        clutter and the template parameter was always defaulted.
        For example,
      
            Old:  `FixedList<label, 3>::Hash<>()`
            New:  `FixedList<label, 3>::hasher()`
            Unchanged:  `labelHashSet::hasher()`
      
        Existing `Hash<>` functor namings are still supported,
        but deprecated.
      
      - define hasher and Hash specialization for bitSet and PackedList
      
      - add symmetric hasher for 'face'.
        Starts with lowest vertex value and walks in the direction
        of the next lowest value. This ensures that the hash code is
        independent of face orientation and face rotation.
      
      NB:
        - some of keys for multiphase handling (eg, phasePairKey)
          still use yet another function naming: `hash` and `symmHash`.
          This will be targeted for alignment in the future.
      95cd8ee7
    • Mark OLESEN's avatar
      ENH: improve consistency of fileName handling windows/non-windows (#2057) · b060378d
      Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
      - wrap command-line retrieval of fileName with an implicit validate.
      
        Instead of this:
            fileName input(args[1]);
            fileName other(args["someopt"]);
      
        Now use this:
            auto input = args.get<fileName>(1);
            auto other = args.get<fileName>("someopt");
      
        which adds a fileName::validate on the inputs
      
        Because of how it is implemented, it will automatically also apply
        to argList getOrDefault<fileName>, readIfPresent<fileName> etc.
      
      - adjust fileName::validate and clean to handle backslash conversion.
        This makes it easier to ensure that path names arising from MS-Windows
        are consistently handled internally.
      
      - dictionarySearch: now check for initial '/' directly instead of
        relying on fileName isAbsolute(), which now does more things
      
      BREAKING: remove fileName::clean() const method
      
      - relying on const/non-const to control the behaviour (inplace change
        or return a copy) is too fragile and the const version was
        almost never used.
      
        Replace:
            fileName sanitized = constPath.clean();
      
        With:
            fileName sanitized(constPath);
            sanitized.clean());
      
      STYLE: test empty() instead of comparing with fileName::null
      b060378d
    • Mark OLESEN's avatar
      ENH: consistency improvements for keyType and wordRe · 96a1b86f
      Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
      - simplify compile/uncompile, reading, assignment
      
      - implicit construct wordRe from keyType (was explicit) to simplify
        future API changes.
      
      - make Foam::isspace consistent with std::isspace (C-locale)
        by including vertical tab and form feed
      
      ENH: improve #ifeq float/label comparisons
      96a1b86f
    • Mark OLESEN's avatar
      ENH: disentangle testing and quoting of regex characters · 57c1fcea
      Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
      - originally had tests for regex meta characters strewn across
        regExp classes as well as wordRe, keyType, string.
        And had special-purpose quotemeta static function within string
        that relied on special naming convention for testing the meta
        characters.
      
        The regex meta character testing/handling now relegated entirely
        to the regExp class(es).
        Relocate quotemeta to stringOps, with a predicate.
      
      - avoid code duplication. Reuse some regExpCxx methods in regExpPosix
      57c1fcea
    • Mark OLESEN's avatar
      ENH: List/DynamicList appendUniq() method · cdbc3e2d
      Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
      - affords some code reduction.
      
      STYLE: use HashSet insert() without found() check in more places
      cdbc3e2d
    • Mark OLESEN's avatar
      ENH: refactor generic patch fields for code reduction · 6dc6d7ca
      Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
      - adjust compilation order to make available after
        finiteArea and finiteVolume are compiled
      6dc6d7ca
    • Mark OLESEN's avatar
      COMP: missing separator · ed686f4e
      Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
      CONFIG: bad csh syntax
      ed686f4e
    • Andrew Heather's avatar
      Merge branch 'feature-snappyHexMesh-proximityCheck' into 'develop' · 41d6b935
      Andrew Heather authored
      ENH: snappyHexMesh: block walk through other surfaces.
      
      See merge request !439
      41d6b935
    • mattijs's avatar
      ENH: snappyHexMesh: block walk through other surfaces. · a9f8bc07
      mattijs authored and Mattijs Janssens's avatar Mattijs Janssens committed
      a9f8bc07
  6. Apr 16, 2021
  7. Apr 15, 2021
  8. Apr 14, 2021
  9. Apr 01, 2021