1. 30 Nov, 2020 11 commits
  2. 28 Nov, 2020 2 commits
  3. 26 Nov, 2020 6 commits
  4. 25 Nov, 2020 12 commits
    • Mark Olesen's avatar
      ENH: installation helpers · 9fe09ad2
      Mark Olesen authored
      ```-
      install-dirs: a general directory installer
      
        Copy installs non-binary (platform) directories.
        Eg,
      
            install-dirs -prefix=... -devel
            install-dirs -prefix=... -default -no-app
      ```
      
      -
      install-platform: a platform (binary) installer
      
        This is primarily driven by the need to install into system mpi
        directories. The problem noted in issue #1893 is caused by the
        rpm-mpi-hooks (fedora and redhat-8).
      
        For the additional mpi library qualifier (openmpi-x86_64) to be
        added to the requirements, the mpi-specific libraries (eg,
        libPstream.so) need to be installed in the mpi system directory
        (eg, /usr/lib64/openmpi).
      
        However, then need symlinks from the system locations back to our
        local directories to ensure that the libraries are correctly found
        via our LD_LIBRARY_PATH and we don't get dummy libraries.
      
      ----
      update-mpi-links: a post-install update hook
      
        Expected paths are registered as persistent information into the
        hook during packaging. Triggering the hook after installation
        completes the creation of the symlinks.
      
      Normal usage,
      ```
      prefix="/tmp/local-install/openfoam"
      
      bin/tools/install-dirs -prefix="$prefix" -common
      bin/tools/install-platform -prefix="$prefix"
      ```
      Installs
       - /tmp/local-install/openfoam/META-INFO
       - /tmp/local-install/openfoam/bin
       - /tmp/local-install/openfoam/etc
       - /tmp/local-install/openfoam/platforms/linux64GccDPInt32Opt/bin
       - /tmp/local-install/openfoam/platforms/linux64GccDPInt32Opt/lib
      
      Can also place architecture-dependent bits elsewhere,
      ```
      prefix="/tmp/local-install/openfoam"
      multi_arch="$(dpkg-architecture -qDEB_TARGET_MULTIARCH)"
      
      bin/tools/install-dirs -prefix="$prefix" -common
      bin/tools/install-platform -exec-prefix="$prefix/$multi_arch"
      ```
      Installs
       - /tmp/local-install/openfoam/META-INFO
       - /tmp/local-install/openfoam/bin
       - /tmp/local-install/openfoam/etc
       - /tmp/local-install/openfoam/x86_64-linux-gnu/bin
       - /tmp/local-install/openfoam/x86_64-linux-gnu/lib
      
      Can use it to flatten out platforms entirely,
      ```
      prefix="/tmp/local-install/openfoam"
      bin/tools/install-dirs -prefix="$prefix" -common
      bin/tools/install-platform -exec-prefix="$prefix"
      ```
      Installs
       - /tmp/local-install/openfoam/META-INFO
       - /tmp/local-install/openfoam/bin
       - /tmp/local-install/openfoam/etc
       - /tmp/local-install/openfoam/lib
      9fe09ad2
    • Mark Olesen's avatar
      CONFIG: bump API to 2011 · c2bf9e1c
      Mark Olesen authored
      - mostly to reflect changes in config prefs and output methods
      c2bf9e1c
    • Mark Olesen's avatar
      52c6642a
    • Mark Olesen's avatar
      COMP: fix label ambiguity · 1fa4221b
      Mark Olesen authored
      1fa4221b
    • Mark Olesen's avatar
      ENH: consistent naming for ZoneMesh lookup method · 501cd353
      Mark Olesen authored
      - findZone(), cfindZone() to return pointer to existing or nullptr if
        not found. This fits with methods such as findObject() etc for other
        classes and can simplify code without checks for '-1' as not found.
      
      - use simpler constructors for empty cell/face/point zones
      501cd353
    • Mark Olesen's avatar
    • Mark Olesen's avatar
      ENH: improve flexiblity for flat output of items (#1929) · 0de32a6e
      Mark Olesen authored
      - change to a templated implementation instead of relying on
        the container's writeList() method.
      
        This inlines the generation while also adding the flexibility to
        define different delimiters (at compile time) without the
        performance penalty of passing run-time parameters.
      0de32a6e
    • Mark Olesen's avatar
      ENH: align Enum methods with HashTable · d2f16905
      Mark Olesen authored
      - deprecate get(key, deflt) in favour of lookup(key, deflt).
        Method name compatibility with HashTable.
      
      - deprecate operator().
        The meaning is too opaque and equally served by other means:
      
        - use get(key) instead of operator()(key).
          Const access whereas HashTable::operator()(key)
          creates missing entry.
      
        - lookup(key, deflt) - instead of operator()(key, deflt).
          Const access whereas HashTable::operator()(key, deflt)
          creates a missing entry.
      
      - make Enum iterable to allow participation in range-for etc.
      d2f16905
    • Mark Olesen's avatar
      STYLE: mark deprecated findIndices methods with warnings · 9122713b
      Mark Olesen authored
      - were deprecated Aug-2018, but not marked as such
      9122713b
    • Mark Olesen's avatar
      STYLE: use labelRange for identity · 7349b97e
      Mark Olesen authored
      7349b97e
    • mattijs's avatar
      ENH: improve offsets handling in extrudeToRegionMesh (#1933) · ae49b511
      mattijs authored
      - non-uniform offsets are generated due to truncation errors,
        which can lead to problems later on (e.g. redistributePar).
      
        Detect if the offsets are close to being uniform.
      ae49b511
    • mattijs's avatar
      ENH: snappyHexMesh: gapLevel. See #1463. · 89ea0115
      mattijs authored
      Adds distance-to-surface as a pre-selection
      to detect cells-in-gaps. Before it could only
      use inside or outside but not distance.
      89ea0115
  5. 24 Nov, 2020 1 commit
  6. 23 Nov, 2020 3 commits
    • mattijs's avatar
      BUG: subsetMesh: map instead of truncate. See #1558. · 9c26b5ce
      mattijs authored
      This also is to do with redistributePar:
      this uses subsetMesh to generate parts to
      send to different processors.
      2) related to 1558: make sure not to choose 'mapped'
      patches to move the processor patches into so
      we can use the mapper cloning and correctly
      size additional data (e.g. offsets). This should
      be generalised to hold for any patch type
      holding local data ...
      9c26b5ce
    • mattijs's avatar
      BUG: wall distance: Fixes #1932. · f9033cbf
      mattijs authored
      Potential problem with multiple faces. Rewritten to
      use DynamicList.
      f9033cbf
    • mattijs's avatar
      COMP: Allwmake: delay building finiteArea · eaf6440a
      mattijs authored
      For convenience - build finiteVolume first
      eaf6440a
  7. 20 Nov, 2020 1 commit
  8. 19 Nov, 2020 4 commits
    • Mark Olesen's avatar
      STYLE: fix doxygen comments · 4b964f67
      Mark Olesen authored
      4b964f67
    • Mark Olesen's avatar
      ENH: support frequency or period for Sine/Square Function1 (#1917) · 8d2d894a
      Mark Olesen authored
      - For slow oscillations it can be more intuitive to specify the
        period.
      
      ENH: separate mark/space for Square
      
      - makes it easier to tailor the desired intervals.
      
      BUG: incorrect square wave fraction with negative phase shifts
      
      ENH: additional cosine Function1
      
      STYLE: avoid code duplication by inheriting Cosine/Square from Sine.
      8d2d894a
    • Mark Olesen's avatar
      STYLE: can add compile-time deprecated message for autoPtr::set() · 6e3bc1f7
      Mark Olesen authored
      - deprecated Feb-2018, but not marked as such.
      
        The set() method originally enforce an additional run-time check
        (Fatal if pointer was already set), but this was rarely used.
        In fact, the set() method was invariably used in constructors
        where the pointer by definition was unset.
      
        Can now mark as deprecated to catch the last of these.
        We prefer reset() for similarity with std::unique_ptr
      
        Eg,
        FOAM_EXTRA_CXXFLAGS="-DFoam_autoPtr_deprecate_setMethod"  wmake
      6e3bc1f7
    • Mark Olesen's avatar
      ENH: Function1 and PatchFunction1 improvements (#1917) · 2f2dcdcf
      Mark Olesen authored
      - easier support for non-mandatory functions.
      
        In some boundary conditions it can be desirable to support
        additional functions, but not necessarily require them. Make this
        easier to support with a Function1, PatchFunction1 NewIfPresent()
        selector.
      
      - support for compatibility lookups
      
      - harmonize branching logic and error handling between Function1 and
        PatchFunction1.
      
      ENH: refactor a base class for Function1, PatchFunction1
      
      - includes base characteristics, patch or scalar information
      
      ENH: additional creation macros
      
      - makeConcreteFunction1, makeConcretePatchFunction1Type for adding a
        non-templated function into the correct templated selection table.
        makeScalarPatchFunction1 for similarity with makeScalarFunction1
      2f2dcdcf