1. 02 Jun, 2020 1 commit
    • Mark Olesen's avatar
      ENH: unify use of dictionary method names · 3e43edf0
      Mark Olesen authored
      - previously introduced `getOrDefault` as a dictionary _get_ method,
        now complete the transition and use it everywhere instead of
        `lookupOrDefault`. This avoids mixed usage of the two methods that
        are identical in behaviour, makes for shorter names, and promotes
        the distinction between "lookup" access (ie, return a token stream,
        locate and return an entry) and "get" access (ie, the above with
        conversion to concrete types such as scalar, label etc).
      3e43edf0
  2. 31 Oct, 2019 1 commit
  3. 06 Feb, 2019 1 commit
  4. 11 Dec, 2018 1 commit
    • Mark Olesen's avatar
      ENH: use Zero when zero-initializing types · 1d85fecf
      Mark Olesen authored
      - makes the intent clearer and avoids the need for additional
        constructor casting. Eg,
      
            labelList(10, Zero)    vs.  labelList(10, 0)
            scalarField(10, Zero)  vs.  scalarField(10, scalar(0))
            vectorField(10, Zero)  vs.  vectorField(10, vector::zero)
      1d85fecf
  5. 06 Nov, 2018 1 commit
  6. 12 Oct, 2018 1 commit
    • Mark Olesen's avatar
      ENH: avoid readScalar, readLabel etc from dictionary (#762, #1033) · 8eddcc07
      Mark Olesen authored
      - use the dictionary 'get' methods instead of readScalar for
        additional checking
      
           Unchecked:  readScalar(dict.lookup("key"));
           Checked:    dict.get<scalar>("key");
      
      - In templated classes that also inherit from a dictionary, an additional
        'template' keyword will be required. Eg,
      
           this->coeffsDict().template get<scalar>("key");
      
        For this common use case, the predefined getXXX shortcuts may be
        useful. Eg,
      
           this->coeffsDict().getScalar("key");
      8eddcc07
  7. 05 Nov, 2017 1 commit
  8. 13 Jul, 2018 1 commit
  9. 26 Jun, 2017 1 commit
  10. 10 Nov, 2015 1 commit
  11. 06 Dec, 2012 1 commit
  12. 04 Dec, 2012 1 commit
  13. 04 Oct, 2012 1 commit
  14. 14 Aug, 2011 1 commit
  15. 09 Jun, 2011 2 commits
  16. 19 Jan, 2011 1 commit
  17. 14 Jan, 2011 1 commit
  18. 07 Jan, 2011 1 commit
  19. 05 Jan, 2011 2 commits
  20. 30 Dec, 2010 1 commit
  21. 21 Dec, 2010 1 commit
  22. 03 Aug, 2010 3 commits
  23. 27 Jul, 2010 1 commit
  24. 29 Mar, 2010 1 commit
  25. 04 Dec, 2009 1 commit
  26. 30 Nov, 2009 1 commit
  27. 10 Oct, 2009 1 commit
  28. 28 Aug, 2009 1 commit
  29. 31 Dec, 2008 1 commit
  30. 07 Oct, 2008 1 commit
  31. 26 Jun, 2008 2 commits
  32. 25 Jun, 2008 2 commits