- 31 Oct, 2019 1 commit
-
-
OpenFOAM bot authored
-
- 06 Feb, 2019 1 commit
-
-
OpenFOAM bot authored
-
- 12 Oct, 2018 1 commit
-
-
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");
-
- 05 Oct, 2018 1 commit
-
-
Mark Olesen authored
- instead of dict.lookup(name) >> val; can use dict.readEntry(name, val); for checking of input token sizes. This helps catch certain types of input errors: { key1 ; // <- Missing value key2 1234 // <- Missing ';' terminator key3 val; } STYLE: readIfPresent() instead of 'if found ...' in a few more places.
-
- 16 Mar, 2018 1 commit
-
-
Mark Olesen authored
- when constructing dimensioned fields that are to be zero-initialized, it is preferrable to use a form such as dimensionedScalar(dims, Zero) dimensionedVector(dims, Zero) rather than dimensionedScalar("0", dims, 0) dimensionedVector("zero", dims, vector::zero) This reduces clutter and also avoids any suggestion that the name of the dimensioned quantity has any influence on the field's name. An even shorter version is possible. Eg, dimensionedScalar(dims) but reduces the clarity of meaning. - NB: UniformDimensionedField is an exception to these style changes since it does use the name of the dimensioned type (instead of the regIOobject).
-
- 21 Apr, 2017 1 commit
-
-
Henry Weller authored
-
- 02 Jun, 2016 1 commit
-
-
Henry Weller authored
Resolves bug-report http://bugs.openfoam.org/view.php?id=2108
-
- 30 Apr, 2016 1 commit
-
-
Henry Weller authored
In order to simplify expressions involving dimensioned internal field it is preferable to use a simpler access convention. Given that GeometricField is derived from DimensionedField it is simply a matter of de-referencing this underlying type unlike the boundary field which is peripheral information. For consistency with the new convention in "tmp" "dimensionedInteralFieldRef()" has been renamed "ref()".
-
- 26 Apr, 2016 1 commit
-
-
Henry Weller authored
See also commit 22f4ad32
-
- 01 Aug, 2013 1 commit
-
-
Henry authored
-
- 21 Mar, 2013 1 commit
-
-
Henry authored
-
- 14 Aug, 2011 1 commit
-
-
Henry authored
-
- 19 Jan, 2011 1 commit
-
- 14 Jan, 2011 1 commit
-
-
Andrew Heather authored
-
- 07 Jan, 2011 1 commit
-
-
graham authored
-
- 05 Jan, 2011 2 commits
-
-
Andrew Heather authored
This reverts commit b18f6cc1.
-
graham authored
-
- 28 Jul, 2010 1 commit
-
-
graham authored
-
- 29 Mar, 2010 1 commit
-
-
Mark Olesen authored
-
- 31 Dec, 2008 1 commit
-
-
Mark Olesen authored
-
- 27 Nov, 2008 1 commit
-
-
henry authored
-
- 25 Jun, 2008 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
-
- 17 Jun, 2008 1 commit
-
-
Andrew Heather authored
-
- 15 Apr, 2008 1 commit
-
-
OpenFOAM-admin authored
-