Skip to content
Snippets Groups Projects
  1. Oct 11, 2019
  2. Oct 10, 2019
  3. Oct 08, 2019
    • Mark OLESEN's avatar
      ENH: code simplification, improvements for reading dictionary variables · 6b5492e3
      Mark OLESEN authored
      - Now accept '/' when reading variables without requiring
        a surrounding '{}'
      
      - fix some degenerate parsing cases when the first character is
        already bad.
      
        Eg, $"abc" would have previously parsed as a <$"> variable, even
        although a double quote is not a valid variable character.
      
        Now emits a warning and parses as a '$' token and a string token.
      6b5492e3
  4. Oct 09, 2019
  5. Oct 08, 2019
  6. Oct 07, 2019
    • Mark OLESEN's avatar
      ENH: improvements to stringOps::expand operations · 46225279
      Mark OLESEN authored
      - add toScalar evaluation, embedded as "${{EXPR}}".
      
        For example,
      
          "repeat ${{5 * 7}} times or ${{ pow(3, 10) }}"
      
      - use direct string concatenation if primitive entry is only a string
        type. This prevents spurious quotes from appearing in the expansion.
      
           radius  "(2+4)";
           angle   "3*15";
           #eval   "$radius*sin(degToRad($angle))";
      
           We want to have
               '(2+4)*sin(degToRad(3*15))'
           and not
               '"(2+4)"*sin(degToRad("3*15"))'
      
      ENH: code refactoring
      
      - refactored expansion code with low-level service routines now
        belonging to file-scope. All expansion routines use a common
        multi-parameter backend to handle with/without dictionary etc.
        This removes a large amount of code duplication.
      46225279
  7. Oct 04, 2019
    • Mark OLESEN's avatar
      STYLE: split off Test-string2 · d9d29e5a
      Mark OLESEN authored
      d9d29e5a
    • Mark OLESEN's avatar
      ENH: stringOps::toScalar improvements · bd35981f
      Mark OLESEN authored
      - add floor/ceil/round methods
      - support evaluation of sub-strings
      
      STYLE: add blockMeshDict1.calc, blockMeshDict1.eval test dictionaries
      
      - useful for testing and simple demonstration of equivalence
      bd35981f
    • Mark OLESEN's avatar
      ENH: improvements to SubList and SubField · 61e95b84
      Mark OLESEN authored
      - SubField and SubList assign from zero
      - SubField +=, -=, *=, /= operators
      
      - SubList construct from UList (as per SubField)
      
        Note: constructing an anonymous SubField or SubList with a single
        parameter should use '{} instead of '()' to avoid compiler
        ambiguities.
      61e95b84
    • Mark OLESEN's avatar
      CONFIG: adjustments for CMake files · f75e01c8
      Mark OLESEN authored
      - drop plugin support for Qt4 (old paraview)
      
      - handle upcoming changes in VTK version naming in CMake files
        * VTK_MAJOR_VERSION becomes VTK_VERSION_MAJOR etc.
      f75e01c8
  8. Oct 02, 2019
  9. Oct 01, 2019
  10. Sep 30, 2019
  11. Oct 02, 2019
  12. Oct 01, 2019
  13. Sep 30, 2019
    • Mark OLESEN's avatar
      ENH: add stringOps::toScalar and dictionary #eval directive · 836d3a84
      Mark OLESEN authored
      - the #eval directive is similar to the #calc directive, but for evaluating
        string expressions into scalar values. It uses an internal parser for
        the evaluation instead of dynamic code compilation. This can make it
        more suitable for 'quick' evaluations.
      
        The evaluation supports the following:
          - operations:  - + * /
          - functions:  exp, log, log10, pow, sqrt, cbrt, sqr, mag, magSqr
          - trigonometric:  sin, cos, tan, asin, acos, atan, atan2, hypot
          - hyperbolic:  sinh, cosh, tanh
          - conversions:  degToRad, radToDeg
          - constants:  pi()
          - misc: rand(), rand(seed)
      836d3a84