1. 20 Oct, 2017 1 commit
  2. 29 Sep, 2017 1 commit
    • Mark OLESEN's avatar
      ENH: adjust infoSwitch to report host subscription (related to #531) · 5873cacc
      Mark OLESEN authored
      - this compact form shows the subscription per host in the unsorted
        mpi order
            nProcs : 18
            Hosts  :
                (node1 6)
                (node2 8)
                (node3 4)
        This provides a succinct overview of which hosts have been
        subscribed or oversubscribed.
      - The longer list of "slave.pid" ... remains available on the
        InfoSwitch 'writeHosts'
  3. 22 Sep, 2017 9 commits
    • Mark OLESEN's avatar
      STYLE: minor cleanup after merge · 4996ac85
      Mark OLESEN authored
    • Mark OLESEN's avatar
      ENH: improve input stringency for argList options · 13f04876
      Mark OLESEN authored
        - bad command-line input such as -label 1234xyz would parse as a
          label (with value 1234) and the trailing junk would be silently
          ignored. This may or may not be appropriate. If the trailing junk
          looked like this '100E' or '1000E-' (ie, forgot to type the
          exponent), the incorrectly parsed values can be quite bad:
              label  = 32684
              scalar = 6.93556e-310
        - use the updated readLabel/readScalar routines that trigger a
          FatalIOError on bad input:
              --> FOAM FATAL IO ERROR:
              Trailing content found parsing '1234xyz'
              --> FOAM FATAL IO ERROR:
              Trailing content found parsing '100E'
         This traps erroneous command-line input immediately.
    • Henry Weller's avatar
      fileOperation: Corrected processor counting for moving mesh cases · 18874f00
      Henry Weller authored and Andrew Heather's avatar Andrew Heather committed
    • Henry Weller's avatar
      argList: addition of fileHandler option moved to argList.C · a0692de3
      Henry Weller authored and Andrew Heather's avatar Andrew Heather committed
      Patch contributed by Timo Niemi, VTT.
      Resolves bug-report https://bugs.openfoam.org/view.php?id=2645
    • mattijs's avatar
      BUG: argList: disable checking for exact path; rely on fileHandler instead · c6954f09
      mattijs authored and Andrew Heather's avatar Andrew Heather committed
    • Andrew Heather's avatar
    • Andrew Heather's avatar
      INT: Integration of Mattijs' collocated parallel IO additions · 85f12ff5
      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
      The controls for the file handling are in the OptimisationSwitches of
          //- 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:
      The work was undertaken by Mattijs Janssens, in collaboration with Henry Weller.
    • Henry Weller's avatar
      listSwitches: moved from argList to debug · beced267
      Henry Weller authored and Andrew Heather's avatar Andrew Heather committed
      Initially the listSwitches functions depended directly on argList functionality
      but this has now been factored out so that the listSwitches functions are more
      general and require only debug functionality.
    • Henry Weller's avatar
      Replace foamList utility with -list.* options · 1ed938ab
      Henry Weller authored and Andrew Heather's avatar Andrew Heather committed
      Provides better context for the available boundary conditions, fvOptions,
      functionObjects etc. and thus returns only those available to and compatible
      with the particular application.
      pimpleFoam -help
      Usage: pimpleFoam [OPTIONS]
        -case <dir>       specify alternate case directory, default is the cwd
                          List functionObjects
        -listFvOptions    List fvOptions
                          List switches registered for run-time modification
        -listScalarBCs    List scalar field boundary conditions (fvPatchField<scalar>)
        -listSwitches     List switches declared in libraries but not set in
                          List turbulenceModels
                          List switches declared in libraries but not set in
        -listVectorBCs    List vector field boundary conditions (fvPatchField<vector>)
                          do not execute functionObjects
        -parallel         run in parallel
        -postProcess      Execute functionObjects only
        -roots <(dir1 .. dirN)>
                          slave root directories for distributed running
        -srcDoc           display source code in browser
        -doc              display application documentation in browser
        -help             print the usage
      pimpleFoam listTurbulenceModels
      pimpleFoam -listTurbulenceModels
      | =========                 |                                                 |
      | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
      |  \\    /   O peration     | Version:  dev                                   |
      |   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
      |    \\/     M anipulation  |                                                 |
      Build  : dev-39c46019
      Exec   : pimpleFoam -listTurbulenceModels
      Date   : Jun 10 2017
      Time   : 21:37:49
      Host   : "dm"
      PID    : 675
      Case   : /home/dm2/henry/OpenFOAM/OpenFOAM-dev
      nProcs : 1
      sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
      SetNaN : Initialising allocated memory to NaN (FOAM_SETNAN).
      fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
      allowSystemOperations : Allowing user-supplied system call operations
      // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
      Turbulence models
      RAS models
      LES models
      Further work will be needed to support the -listTurbulenceModels option in
      multiphase solvers.
  4. 31 Jul, 2017 1 commit
  5. 18 Jul, 2017 1 commit
    • Mark OLESEN's avatar
      ENH: make treatment of stream allocators more uniform (issue #532) · c12ca2b3
      Mark OLESEN authored
      - use allocator class to wrap the stream pointers instead of passing
        them into ISstream, OSstream and using a dynamic cast to delete
        then. This is especially important if we will have a bidirectional
        stream (can't delete twice!).
      - file stream constructors with std::string (C++11)
      - for rewind, explicit about in|out direction. This is not currently
        important, but avoids surprises with any future bidirectional access.
      - combined string streams in StringStream.H header.
        Similar to <sstream> include that has both input and output string
  6. 14 Jul, 2017 2 commits
  7. 06 Jul, 2017 3 commits
  8. 29 Jun, 2017 1 commit
  9. 28 Jun, 2017 1 commit
  10. 02 Jun, 2017 1 commit
  11. 01 Jun, 2017 2 commits
  12. 31 May, 2017 1 commit
  13. 30 May, 2017 1 commit
  14. 25 May, 2017 1 commit
  15. 25 Apr, 2017 1 commit
  16. 19 Apr, 2017 4 commits
  17. 07 Apr, 2017 1 commit
  18. 06 Apr, 2017 1 commit
  19. 03 Apr, 2017 1 commit
    • mark's avatar
      ENH: default jobControl now under the '~/.OpenFOAM/jobControl' directory · aa5e5c29
      mark authored
      - this implies that jobControl is a user-resource for OpenFOAM.
        It was previously located under $WM_PROJECT_INST_DIR/jobControl,
        but few users will have write access there.
      - an unset FOAM_JOB_DIR variable is treated as "~/.OpenFOAM/jobControl",
        which can partially reduce environment clutter.
      - provide argList::noJobInfo() to conveniently suppress job-info on an
        individual basis for short-running utilities (eg, foamListTimes) to
        avoid unneeded clutter.
  20. 31 Mar, 2017 1 commit
    • mark's avatar
      ENH: various general improvments to the POSIX functions · 3a4038b2
      mark authored
      - ensure proper and sensible handling of empty names.
        Eg, isDir(""), isFile("") are no-ops, and avoid file-stat
      - rmDir:
        * optional 'silent' option to suppress messages.
        * removes all possible sub-entries, instead of just giving up on
          the first problem encountered.
      - reduced code duplication in etcFiles
      ENH: provide WM_USER_RESOURCE_DIRNAME define (in foamVersion.H)
      - this is still a hard-coded value, but at least centrally available
  21. 21 Mar, 2017 1 commit
  22. 10 Mar, 2017 2 commits
  23. 21 Feb, 2017 1 commit
  24. 20 Dec, 2016 1 commit