Skip to content
Snippets Groups Projects
  1. Nov 25, 2020
  2. Nov 23, 2020
    • 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
  3. Nov 20, 2020
  4. Nov 19, 2020
    • 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
    • Mark OLESEN's avatar
      STYLE: use brace constructors for Foam::zero and Foam::one · 07bbae0c
      Mark OLESEN authored
      - makes it clearer that these are constructors and not function calls
      07bbae0c
    • Mark OLESEN's avatar
      STYLE: prefix zero/one with Foam:: qualifier · 98d05fa8
      Mark OLESEN authored
      ENH: support construction of zero-sized IndirectList
      
      - useful when addressing is to be generated in-place after construction.
        Eg,
      
            indirectPrimitivePatch myPatches
            (
                IndirectList<face>(mesh.faces(), Zero),
                mesh.points()
            );
            labelList& patchFaces = myPatches.addressing();
      
            patchFaces.resize(...);
            // populate patchFaces
      
      STYLE: add noexcept for zero/one fields and remove old dependency files
      
      COMP: correct typedefs for geometricOneField, geometricZeroField
      98d05fa8
    • Mark OLESEN's avatar
      ENH: fanPressureFvPatchScalarField - adjust compatibility handling · f126e291
      Mark OLESEN authored
      COMP: add missing clone() for fanCurve member
      
      STYLE: reduce padding in data members
      f126e291
  5. Nov 18, 2020
  6. Nov 17, 2020
  7. Nov 16, 2020
  8. Nov 13, 2020
  9. Nov 12, 2020
  10. Nov 11, 2020
    • Mark OLESEN's avatar
      CONFIG: rationalize mpi config tuning (#1910) · c91fc6f4
      Mark OLESEN authored
      - prefix FOAM_MPI and library directories with 'sys-' for system
        versions for uniform identication.
      
        WM_MPLIB      | libdir (FOAM_MPI)  | old naming |
        SYSTEMMPI     | sys-mpi            | mpi        |
        SYSTEMOPENMPI | sys-openmpi        | openmpi-system |
      
      - prefix preferences with 'prefs.' to make them more easily
        identifiable, and update bin/tools/create-mpi-config accordingly
      
            Old name: config.{csh,sh}/openmpi
            New name: config.{csh,sh}/prefs.openmpi
      
      - additional mpi preferences now available:
          * prefs.intelmpi
          * prefs.mpich
          ...
      
      CONFIG: added hook for EASYBUILDMPI (eb-mpi), somewhat like USERMPI
      
      - EasyBuild uses mpicc when compiling, so no explicit wmake rules are
        used
      
      ENH: support different major versions for system openmpi
      
      - for example, with
      
           WM_MPLIB=SYSTEMOPENMPI2
      
        defines FOAM_MPI=sys-openmpi2 and thus creates lib/sys-openmpi2
      
      ENH: centralize handling of mpi as 'mpi-rules'
      
          Before:
              sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
              sinclude $(DEFAULT_RULES)/mplib$(WM_MPLIB)
      
              ifeq (,$(FOAM_MPI_LIBBIN))
                  FOAM_MPI_LIBBIN := $(FOAM_LIBBIN)/$(FOAM_MPI)
              endif
      
          After:
              include $(GENERAL_RULES)/mpi-rules
      
      - also allows variants such as SYSTEMOPENMPI2 to be handled separately
      c91fc6f4
    • Mark OLESEN's avatar
      CONFIG: rationalize compiler tuning · 26ec9b5a
      Mark OLESEN authored
      - support prefs.compiler with better possibilities to provide
        overload values
      
      STYLE: reduce code for WM_ARCH_OPTION (seldom-used)
      26ec9b5a