1. 02 Jun, 2020 1 commit
  2. 19 Feb, 2020 1 commit
  3. 31 Oct, 2019 1 commit
  4. 06 Feb, 2019 1 commit
  5. 24 Jan, 2019 1 commit
  6. 07 Jan, 2019 1 commit
  7. 17 Dec, 2018 1 commit
  8. 11 Dec, 2018 1 commit
  9. 22 Nov, 2018 1 commit
  10. 19 Oct, 2018 1 commit
    • Mark Olesen's avatar
      STYLE: use range-for when looping dictionary entries. · 07dafe7b
      Mark Olesen authored
      - as part of the cleanup of dictionary access methods (c6520033)
        made the dictionary class single inheritance from IDLList<entry>.
      
        This eliminates any ambiguities for iterators and allows
        for simple use of range-for looping.
      
        Eg,
            for (const entry& e : topDict))
            {
                Info<< "entry:" << e.keyword() << " is dict:" << e.isDict() << nl;
            }
      
         vs
      
            forAllConstIter(dictionary, topDict, iter))
            {
                Info<< "entry:" << iter().keyword()
                    << " is dict:" << iter().isDict() << nl;
            }
      07dafe7b
  11. 15 Oct, 2018 1 commit
    • Mark Olesen's avatar
      ENH: rationalize dictionary access methods · c6520033
      Mark Olesen authored
      - use keyType::option enum to consolidate searching options.
        These enumeration names should be more intuitive to use
        and improve code readability.
      
          Eg,   lookupEntry(key, keyType::REGEX);
          vs    lookupEntry(key, false, true);
      
        or
      
          Eg,   lookupEntry(key, keyType::LITERAL_RECURSIVE);
          vs    lookupEntry(key, true, false);
      
      - new findEntry(), findDict(), findScoped() methods with consolidated
        search options for shorter naming and access names more closely
        aligned with other components. Behave simliarly to the
        methods lookupEntryPtr(), subDictPtr(), lookupScopedEntryPtr(),
        respectively. Default search parameters consistent with lookupEntry().
      
          Eg, const entry* e = dict.findEntry(key);
          vs  const entry* e = dict.lookupEntryPtr(key, false, true);
      
      - added '*' and '->' dereference operators to dictionary searchers.
      c6520033
  12. 31 Jul, 2018 1 commit
  13. 12 Apr, 2018 1 commit
    • Mark Olesen's avatar
      STYLE: reorder/refactor stream format options · 4cf932b2
      Mark Olesen authored
      - IOstreamOption class to encapsulate format, compression, version.
        This is ordered to avoid internal padding in the structure, which
        reduces several bytes of memory overhead for stream objects
        and other things using this combination of data.
      
        Byte-sizes:
            old  IOstream:48  PstreamBuffers:88  Time:928
            new  IOstream:24  PstreamBuffers:72  Time:904
      
      ====
      
      STYLE: remove support for deprecated uncompressed/compressed selectors
      
      In older versions, the system/controlDict used these types of
      specifications:
      
          writeCompression uncompressed;
          writeCompression compressed;
      
      As of DEC-2009, these were deprecated in favour of using normal switch
      names:
      
          writeCompression true;
          writeCompression false;
          writeCompression on;
          writeCompression off;
      
      Now removed these deprecated names and treat like any other unknown
      input and issue a warning. Eg,
      
         Unknown compression specifier 'compressed', assuming no compression
      
      ====
      
      STYLE: provide Enum of stream format names (ascii, binary)
      
      ====
      
      COMP: fixed incorrect IFstream construct in FIREMeshReader
      
      - spurious bool argument (presumably meant as uncompressed) was being
        implicitly converted to a versionNumber. Now caught by making
        IOstreamOption::versionNumber constructor explicit.
      
      - bad version specifier in changeDictionary
      4cf932b2
  14. 22 Feb, 2018 2 commits
    • Mark Olesen's avatar
      STYLE: consistent use of wordHashSet instead of HashSet<word> · 37e248c7
      Mark Olesen authored
      - the wordHashSet typedef is always available when HashSet has been
        included.
      
      - use default HashTable key (word) instead of explicitly mentioning it
      37e248c7
    • Mark Olesen's avatar
      ENH: prevent conversion of string to regExp in stringListOps (closes #739) · ec38e7a4
      Mark Olesen authored
      * For most cases, this conversion would be largely unintentional
        and also less efficient. If the regex is desirable, the caller
        should invoke it explicitly.
        For example,
      
            findStrings(regExp(str), listOfStrings);
      
        Or use one of the keyType, wordRe, wordRes variants instead.
        If string is to be used as a plain (non-regex) matcher,
        this can be directly invoked
      
            findMatchingStrings(str, listOfStrings);
      
        or using the ListOps instead:
      
            findIndices(listOfStrings, str);
      
      * provide function interfaces for keyType.
      ec38e7a4
  15. 21 Feb, 2018 1 commit
  16. 08 Jan, 2018 2 commits
    • Mark Olesen's avatar
      ENH: simplify method names for reading argList options and arguments · 345a2a42
      Mark Olesen authored
      - use succincter method names that more closely resemble dictionary
        and HashTable method names. This improves method name consistency
        between classes and also requires less typing effort:
      
          args.found(optName)        vs.  args.optionFound(optName)
          args.readIfPresent(..)     vs.  args.optionReadIfPresent(..)
          ...
          args.opt<scalar>(optName)  vs.  args.optionRead<scalar>(optName)
          args.read<scalar>(index)   vs.  args.argRead<scalar>(index)
      
      - the older method names forms have been retained for code compatibility,
        but are now deprecated
      345a2a42
    • Mark Olesen's avatar
      STYLE: avoid unnecessary use of optionLookup · 9dc361da
      Mark Olesen authored
      - direct parsing of -funcs to ITstream.
      - use direct lookup when the option is a word/string
      9dc361da
  17. 24 Oct, 2017 1 commit
  18. 20 Jul, 2017 1 commit
  19. 21 Jul, 2017 1 commit
  20. 07 Jul, 2017 1 commit
    • Andrew Heather's avatar
      INT: Integration of Mattijs' collocated parallel IO additions · d8d6030a
      Andrew Heather authored
      Original commit message:
      ------------------------
      
      Parallel IO: New collated file format
      
      When an OpenFOAM simulation runs in parallel, the data for decomposed fields and
      mesh(es) has historically been stored in multiple files within separate
      directories for each processor.  Processor directories are named 'processorN',
      where N is the processor number.
      
      This commit introduces an alternative "collated" file format where the data for
      each decomposed field (and mesh) is collated into a single file, which is
      written and read on the master processor.  The files are stored in a single
      directory named 'processors'.
      
      The new format produces significantly fewer files - one per field, instead of N
      per field.  For large parallel cases, this avoids the restriction on the number
      of open files imposed by the operating system limits.
      
      The file writing can be threaded allowing the simulation to continue running
      while the data is being written to file.  NFS (Network File System) is not
      needed when using the the collated format and additionally, there is an option
      to run without NFS with the original uncollated approach, known as
      "masterUncollated".
      
      The controls for the file handling are in the OptimisationSwitches of
      etc/controlDict:
      
      OptimisationSwitches
      {
          ...
      
          //- Parallel IO file handler
          //  uncollated (default), collated or masterUncollated
          fileHandler uncollated;
      
          //- collated: thread buffer size for queued file writes.
          //  If set to 0 or not sufficient for the file size threading is not used.
          //  Default: 2e9
          maxThreadFileBufferSize 2e9;
      
          //- masterUncollated: non-blocking buffer size.
          //  If the file exceeds this buffer size scheduled transfer is used.
          //  Default: 2e9
          maxMasterFileBufferSize 2e9;
      }
      
      When using the collated file handling, memory is allocated for the data in the
      thread.  maxThreadFileBufferSize sets the maximum size of memory in bytes that
      is allocated.  If the data exceeds this size, the write does not use threading.
      
      When using the masterUncollated file handling, non-blocking MPI communication
      requires a sufficiently large memory buffer on the master node.
      maxMasterFileBufferSize sets the maximum size in bytes of the buffer.  If the
      data exceeds this size, the system uses scheduled communication.
      
      The installation defaults for the fileHandler choice, maxThreadFileBufferSize
      and maxMasterFileBufferSize (set in etc/controlDict) can be over-ridden within
      the case controlDict file, like other parameters.  Additionally the fileHandler
      can be set by:
      - the "-fileHandler" command line argument;
      - a FOAM_FILEHANDLER environment variable.
      
      A foamFormatConvert utility allows users to convert files between the collated
      and uncollated formats, e.g.
          mpirun -np 2 foamFormatConvert -parallel -fileHandler uncollated
      
      An example case demonstrating the file handling methods is provided in:
      $FOAM_TUTORIALS/IO/fileHandling
      
      The work was undertaken by Mattijs Janssens, in collaboration with Henry Weller.
      d8d6030a
  21. 17 Jun, 2016 1 commit
  22. 15 Jun, 2016 1 commit
    • Henry Weller's avatar
      changeDictionary: Simplified by removing the need for the superfluous... · 3d98d6e5
      Henry Weller authored
      changeDictionary: Simplified by removing the need for the superfluous dictionaryReplacement sub-dictionary
      
      Added the option '-subDict' to specify a sub-dictionary if multiple
      replacement sets are present in the same file.  This also provides
      backward compatibility by setting '-subDict dictionaryReplacement'
      3d98d6e5
  23. 20 Apr, 2016 1 commit
  24. 27 Jun, 2016 1 commit
  25. 25 Jan, 2016 1 commit
    • mattijs's avatar
      ENH: glboal file handling: initial commit · e4240592
      mattijs authored
      Moved file path handling to regIOobject and made it type specific so
      now every object can have its own rules. Examples:
      - faceZones are now processor local (and don't search up anymore)
      - timeStampMaster is now no longer hardcoded inside IOdictionary
        (e.g. uniformDimensionedFields support it as well)
      - the distributedTriSurfaceMesh is properly processor-local; no need
        for fileModificationChecking manipulation.
      e4240592
  26. 09 Dec, 2015 1 commit
  27. 02 Dec, 2015 1 commit
  28. 10 Nov, 2015 1 commit
  29. 22 Aug, 2013 1 commit
  30. 21 Feb, 2013 1 commit
  31. 05 Dec, 2012 1 commit
  32. 21 Sep, 2012 1 commit
  33. 03 Aug, 2012 1 commit
  34. 19 Apr, 2012 1 commit
  35. 17 Apr, 2012 1 commit
  36. 10 Nov, 2011 1 commit
  37. 14 Aug, 2011 1 commit
  38. 25 Jul, 2011 1 commit