Skip to content
Snippets Groups Projects
  1. Oct 29, 2021
    • Mark OLESEN's avatar
      ENH: additional 'nocopy' methods for List resize/reserve methods · b8a4b7e8
      Mark OLESEN authored
      - the size of a List often requires adjustment prior to an operation,
        but old values (if any) are not of interest and will be overwritten.
      
        In these cases can use the _nocopy versions to avoid additional memory
        overhead of the intermediate list and the copy/move overhead of
        retaining the old values (that we will subsequently discard anyhow).
      
        No equivalent for PtrList/UPtrList - this would be too fragile.
      
      - add swap DynamicField with DynamicList
      
      BUG: fixed Dynamic{Field,List} setCapacity corner case
      
      - for the case when the newly requested capacity coincides with the
        current addressable size, the resize of the underlying list would have
        been bypassed - ie, the real capacity was not actually changed.
      
      - remove (unused) PtrDynList setCapacity method as too fragile
      b8a4b7e8
    • Mark OLESEN's avatar
      ENH: return UList range slice as a SubList · e2861cc2
      Mark OLESEN authored
      - previously returned the range slice as a UList,
        but this prevents convenient assignment.
        Apply similar handling for Field/SubField
      
        Allows the following
      
           labelRange range(...);
           fullList.slice(range) = identity(range.size());
      
        and
      
           fullList.slice(range) = UIndirectList<T>(other, addr);
      
      ENH: create SubList from full FixedList (simplifies interface)
      
      - allow default constructed SubList. Use shallowCopy to 'reset' later
      e2861cc2
    • Mark OLESEN's avatar
      ENH: add '_bytes()' versions of List data(), cdata() · 3781f17e
      Mark OLESEN authored
      - simply adds in the reinterpret_cast, which simplifies coding for
        binary data movement.
        Name complements the size_bytes() method for contiguous data
      
      STYLE: container IO.C files into main headers for better visibility
      
      STYLE: include CompactListList.H in polyTopoChange
      
      - avoids future mismatches if the CompactListList template signature
        changes
      
      GIT: relocate CompactListList into CompactLists/ directory
      3781f17e
    • Mark OLESEN's avatar
      ENH: additional tests in {cell,face}SetOption · 3d3d2874
      Mark OLESEN authored
      - useSubMesh() - name as per fvMeshSubsetProxy.
        Setter methods take a parameter instead of direct access.
      3d3d2874
    • Mark OLESEN's avatar
      ENH: add static set/get dimensionSet::checking() method · f5058bca
      Mark OLESEN authored
       - encapsulates toggling
      
      STYLE: noexcept for some Time methods
      f5058bca
    • Mark OLESEN's avatar
    • Mark OLESEN's avatar
      BUG: face flips lost on foamToVTK faceZone output · 120e4a46
      Mark OLESEN authored
      - previously used an indirect patch to get the sampling locations,
        but this doesn't take account of the face flips. Now use
        the faceZone intrinsic for generating a properly flipped patch
        and provide the sampling locations separately.
      
      STYLE: adjust compatiblity header for surfaceMeshWriter
      120e4a46
    • Mark OLESEN's avatar
      a98d5ebf
    • Mark OLESEN's avatar
      CONFIG: improve flexibility of MPI specification · 435be2e5
      Mark OLESEN authored
      - it is now possible to include the selected mpi version in the
        top-level bashrc or prefs.sh file. For example,
      
            WM_MPLIB=OPENMPI-4.1.1  or  WM_MPLIB=openmpi-4.1.1
      
        after evaluation of the config.sh/mpi, this will define
      
            WM_MPLIB=OPENMPI-4.1.1  and  FOAM_MPI=openmpi-4.1.1
      
        During the wmake, the mpi-rules will first load the MPI 'family'
        rules (OPENMPI in this example) before trying to load
        version-specific rules if they exist.
      
        NOTE: the regular user-defined prefs system is unaffected by this
        change. This means it is still possible to use a file such as
        'prefs.openmpi' to define the preferred version instead or as well.
        However, it does mean inconsistent naming can be specified.
        For example, specify WM_MPLIB=OPENMPI-4.1.1 at the top-level but
        actually have FOAM_MPI=openmpi-4.0.6 in the prefs.openmpi file.
        This will make the value of WM_MPLIB misleading.
      
      CONFIG: foamConfigurePaths support for sys-openmpi major version
      
      C...
      435be2e5
  2. Oct 28, 2021
  3. Oct 22, 2021
  4. Oct 21, 2021
  5. Oct 20, 2021
  6. Oct 19, 2021
  7. Oct 18, 2021
    • mattijs's avatar
      ENH: Added contact resistance to multi-world. See #1535. · 2a2edf5f
      mattijs authored
      - added contact resistance to turbulentTemperatureCoupledBaffleMixed
      - added basic multi-world to turbulentTemperatureRadCoupledMixed
      - added unit-testcase to $FOAM_APP/test/multiWorld
      2a2edf5f
    • Mark OLESEN's avatar
      3e026783
    • Tatsuya Shimizu's avatar
      COMP: added arm64 support for OSX fpe handling (#2240) · 85760cbc
      Tatsuya Shimizu authored and Mark OLESEN's avatar Mark OLESEN committed
      85760cbc
    • Mark OLESEN's avatar
      BUG: Foam::cp inadvertently creates recursive directories (fixes #2235) · fe8c6309
      Mark OLESEN authored
      - noticed by Robin Knowles with `decomposePar -fields -copyZero`
      
        The internals for the Foam:cp method combine the behaviour of
        a regular `cp` and `cp -R` combined.
      
        When source and target are both directories, the old implementation
        created a subdirectory for the contents.
        This normally fine,
      
            ok:  cp "path1/0/" to "path2/1" -> "path2/1/2"
            BUT: cp "path1/0/" to "path2/0" -> "path2/0/0" !!
      
        Now add check for the basenames first.
        If they are identical, we probably meant to copy directory contents
        only, without the additional subdir layer.
      
      BUG: decomposePar -fields -copyZero copies the wrong directory
      
      - was using the current time name (usually latest) instead of copying
        the 0 directory
      
      ENH: accept 0.orig directories as a fallback to copy if the 0 directory
      is missing
      fe8c6309
    • Mark OLESEN's avatar
      CONFIG: accept '-lib' for foamCleanPath · 4a064645
      Mark OLESEN authored
      - simplfies differences for OSX
      4a064645
    • Mark OLESEN's avatar
      CONFIG: improve robustness/flexibility for MPI config handling · 16d48ed0
      Mark OLESEN authored
      - use orte-info to determine prefix/libdir for openmpi.
        This removes a run-time dependency on mpicc, which is actually
        only needed for building with MPI (not running with MPI).
        The corresponding openmpi devel package (deb/rpm) will not
        necessarily be installed on a particular system.
      
      - retain mpicc logic if the new logic using orte-info does not
        deliver an answer. Final fallback to using 'orterun' to
        infer prefix/libdir.
      
      - Additional logic for intel and msmpi to make it easier to
        locate these vendor packages within ThirdParty
        (ie, under ThirdParty/opt/...)
      
      CONFIG: improve robustness
      
      - add check for absolute path when adding PATH/LD_LIBRARY_PATH etc.
      
      - prefix more variables with '_foam*' to prevent accidental overwrite
        of userspace shell variables when sourcing
      16d48ed0
  8. Oct 15, 2021
  9. Oct 14, 2021
  10. Oct 12, 2021
  11. Oct 08, 2021
  12. Oct 07, 2021
  13. Oct 06, 2021
  14. Oct 05, 2021
  15. Oct 04, 2021