Skip to content
Snippets Groups Projects
  1. Jun 01, 2018
    • Mark OLESEN's avatar
      ENH: improve infrastructure for detecting excess tokens (issue #762) · 511b3562
      Mark OLESEN authored
      - Always used for optional dictionary entries, since these are individual
        values, and not meant to be embedded in a larger stream of tokens.
      
        Methods:
           - lookupOrDefault, lookupOrAddDefault, lookupOrDefaultCompat
           - readIfPresent, readIfPresentCompat
      
      - Handling mandatory dictionary entries is slightly more complex,
        since these may be part of larger stream of tokens, and are often
        used in a constructor context. For example,
      
            word modelType(dict.lookup("type"));
      
        Or they are used without a definite context. For example,
      
            dict.lookup("format") >> outputFormat;
      
        Newly introduced methods for mandatory dictionary entries:
           - get, getCompat
           - read, readCompat
      
        In a constructor or assignment context:
      
            word modelType(dict.get<word>("type"));
            outputFormat = dict.lookup("format");
      
        without copy/move (similar to readIfPresent):
      
            dict.read("format", outputFormat);
      511b3562
    • Mark OLESEN's avatar
      a6f524b1
  2. May 31, 2018
  3. May 30, 2018
  4. May 29, 2018
  5. May 28, 2018
  6. May 24, 2018
  7. May 21, 2018
    • mattijs's avatar
      ENH: snappyHexMesh: directional refinememt. · cb1cd96b
      mattijs authored
      Basic directional refinement:
      - only for coordinate aligned meshes
      - only for refinementRegions
      See the mesh/snappyHexMesh/aerofoilNACA0012_directionalRefinement
      tutorial.
      cb1cd96b
  8. May 17, 2018
    • Haakan Nilsson's avatar
      STYLE: foamPwd (posix) function with some env replacements (issue #844) · d8ea41e7
      Haakan Nilsson authored and Mark OLESEN's avatar Mark OLESEN committed
      - the current working path with replacements for base-level
        OpenFOAM env variables such as FOAM_RUN, WM_PROJECT_DIR,
        WM_PROJECT_USER_DIR etc
      
        Can be used directly from the command-line or embedded into a
        command prompt. For example,
      
            PS1='$(foamPwd)\n\u\$ '
      
      - aliases for user solver/utilities located under "$WM_PROJECT_USER_DIR":
        (ufoam, uapp, usol, uutil)
      d8ea41e7
  9. Mar 01, 2018
  10. Feb 21, 2018
  11. Dec 28, 2017
  12. Dec 21, 2017
  13. Dec 13, 2017
  14. Dec 11, 2017
  15. May 21, 2018
  16. May 16, 2018
  17. May 17, 2018
    • Mark OLESEN's avatar
      ENH: avoid memory leaks for HashPtrTable, PtrMap insertion (issue #749) · 48d654cf
      Mark OLESEN authored
      - disallow insert() of raw pointers, since a failed insertion
        (ie, entry already existed) results in an unmanaged pointer.
      
        Either insert using an autoPtr, or set() with raw pointers or autoPtr.
      
      - IOobjectList::add() now takes an autoPtr instead of an object reference
      
      - IOobjectList::remove() now returns an autoPtr instead of a raw pointer
      48d654cf
  18. May 16, 2018