1. 31 Jan, 2019 7 commits
    • Mark Olesen's avatar
      ENH: add clip() method to GeometricField · 27981d42
      Mark Olesen authored
      27981d42
    • Mark Olesen's avatar
      ENH: minMax, minMaxMag as functions and field functions · c6ee663e
      Mark Olesen authored
      - Global functions are unary or combining binary functions, which are
        defined in MinMax.H (MinMaxOps.H).
      
        There are also global reduction functions (gMinMax, gMinMaxMag)
        as well as supporting 'Op' classes:
      
        - minMaxOp, minMaxEqOp, minMaxMagOp, minMaxMagEqOp
      
        Since the result of the functions represents a content reduction
        into a single MinMax<T> value (a min/max pair), field operations
        returning a field simply do not make sense.
      
      - Implemented for lists, fields, field-fields, DimensionedField,
        GeometricField (parallel reducing, with boundaries).
      
      - Since the minMax evaluates during its operation, this makes it more
        efficient for cases where both min/max values are required since it
        avoids looping twice through the data.
      
        * Changed GeometricField writeMinMax accordingly.
      
      ENH: clip as field function
      
      - clipping provides a more efficient, single-pass operation to apply
        lower/upper limits on single or multiple values.
      
        Examples,
      
          scalarMinMax limiter(0, 1);
      
          limiter.clip(value)
      
             -> returns a const-ref to the value if within the range, or else
                returns the appropriate lower/upper limit
      
          limiter.inplaceClip(value)
      
             -> Modifies the value if necessary to be within lower/upper limit
      
        Function calls
      
          clip(value, limiter)
      
             -> returns a copy after applying lower/upper limit
      
          clip(values, limiter)
      
             -> returns a tmp<Field> of clipped values
      c6ee663e
    • Mark Olesen's avatar
    • Mark Olesen's avatar
      ENH: change vtk::Tools from a class to a namespace · a149ed0b
      Mark Olesen authored
      - allows localized extension of functionality
      a149ed0b
    • Mark Olesen's avatar
      ENH: add bitwise and/or ops · 4eef0795
      Mark Olesen authored
      4eef0795
    • Mark Olesen's avatar
      36492f48
    • mattijs's avatar
      COMP: Allwmake: build order · daffc2b7
      mattijs authored
      daffc2b7
  2. 30 Jan, 2019 8 commits
  3. 29 Jan, 2019 4 commits
    • Andrew Heather's avatar
      1ccf3157
    • Andrew Heather's avatar
      DOC: Updated cloudName -> cloud · 940fbe05
      Andrew Heather authored
      940fbe05
    • Mark Olesen's avatar
      ENH: add initial support for compile-time project paths (#1050) · 89e60963
      Mark Olesen authored
      Eg,
          #define FOAM_CONFIGURED_PROJECT_ETC "/usr/share/openfoam/etc"
      
      This provides some easy to file patching locations, but is not yet
      integrated in the build system at all.
      89e60963
    • Mark Olesen's avatar
      ENH: add 'default' as possible Switch state, but not as input/output · fd348374
      Mark Olesen authored
      - in some circumstances we need to pass a bool value upwards to the
        caller and know if the true/false value was set based on real input
        or is a default value.
      
        Eg, in the object::read() we might normally have
      
           enabled_(dict.readIfPresent(key, true));
      
        but would lose information about why the value is true/false.
      
        We can change that by using
      
           enabled_(dict.readIfPresent<Switch>(key, Switch::DEFAULT_ON));
      
        After which we can use this information is testing.
      
            if
            (
                child.enabled().nonDefault()
              ? child.enabled()
              : parent.enabled()
            )
            { ... }
      
         And thus enable output if the parent requested it explicitly or by
         default and it has not been explicitly disabled in the child.
      
        No difference when testing as a bool and the text representation
        of DEFAULT_ON / DEFAULT_OFF will simply be "true" / "false".
      
      ENH: add construction of Switch from dictionary (similar to Enum)
      fd348374
  4. 28 Jan, 2019 4 commits
  5. 26 Jan, 2019 5 commits
    • Mark Olesen's avatar
      STYLE: centralize example dictionaries under etc/ (issue #1074) · cc6e00bd
      Mark Olesen authored
      - as well as being more convenient to find, this is necessary when the
        OpenFOAM installation is without sources or tutorials
      cc6e00bd
    • Mark Olesen's avatar
    • Mark Olesen's avatar
      STYLE: reorganize some legacy and less frequently used components · 79fc6157
      Mark Olesen authored
      - older emacs tools into legacy
      - old process tools
      
      * Less frequently used scripts into bin/tools/
      
        - findEmptyMake
        - foamAllHC
        - foamUpdateCaseFileHeader
      
      * Infrastructure file (only used by foamNewApp)
      
        - wmake/wmakeFilesAndOptions -> wmake/scripts/wmakeFilesAndOptions
      
      * Merge wmakeRoot convenience as 'wmake -pwd'
      * Remove obsolete wmakePrintBuild (superseded by wmakeBuildInfo)
      * Remove unused mergeHistory file
      79fc6157
    • Mark Olesen's avatar
      STYLE: limit foamCreateManpage to documented options · cfa8accf
      Mark Olesen authored
      Previously silently accepted '-o' as being equivalent to '-output',
      but the former could be misinterpreted meaning an output file (which
      it is not) instead of an output directory.
      cfa8accf
    • Mark Olesen's avatar
      CONFIG: combine wmake rules for KNL architecture as a compile option · 1d32efed
      Mark Olesen authored
      - instead of
      
            WM_COMPILER=GccKNL WM_COMPILE_OPTION=Opt
      
            -> linux64GccKNLDPInt32Opt
      
        now specify
      
            WM_COMPILER=Gcc  WM_COMPILE_OPTION=OptKNL
      
            -> linux64GccDPInt32OptKNL
      
      This makes it easier (and more obvious) for adding different tweaks
      without needing to generate too many files.
      Eg,
      
          cd wmake/rules/linux64Gcc
      
          cp cOpt   cOptBdw
          cp c++Opt c++OptBdw
      
          edit these two files and then use WM_COMPILE_OPTION=OptBdw
      
      CONFIG: provide some default c/c++ flags in General compiler rules
      
      - can make is easier when deriving new compile options, and ensures
        that '-02' is enabled as an initial default.
      1d32efed
  6. 25 Jan, 2019 10 commits
  7. 24 Jan, 2019 2 commits