1. 06 Feb, 2019 1 commit
  2. 05 Feb, 2019 1 commit
  3. 31 Jan, 2019 1 commit
  4. 28 Jan, 2019 2 commits
    • Mark Olesen's avatar
      ENH: add initial support for compile-time project paths (#1050) · 86d462c0
      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.
      86d462c0
    • Mark Olesen's avatar
      ENH: add 'default' as possible Switch state, but not as input/output · a3f960e3
      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)
      a3f960e3
  5. 25 Jan, 2019 6 commits
  6. 24 Jan, 2019 2 commits
  7. 29 Jan, 2019 1 commit
    • Mark Olesen's avatar
      ENH: minor adjustments to Switch · 33160552
      Mark Olesen authored
      - assignment operators return a value, for consistency with bool.
      
      - partial revert of DEFAULT_TRUE, DEFAULT_FALSE, to reduce complexity.
      33160552
  8. 23 Jan, 2019 4 commits
  9. 21 Jan, 2019 1 commit
  10. 18 Jan, 2019 1 commit
  11. 16 Jan, 2019 4 commits
  12. 10 Jan, 2019 6 commits
  13. 15 Jan, 2019 1 commit
  14. 14 Jan, 2019 2 commits
  15. 10 Jan, 2019 1 commit
  16. 11 Jan, 2019 2 commits
  17. 10 Jan, 2019 4 commits