- Mar 21, 2018
-
-
Mark OLESEN authored
- both autoPtr and tmp are defined with an implicit construct from nullptr (but with explicit construct from a pointer to null). Thus is it safe to use 'nullptr' when returning an empty autoPtr or tmp.
-
- Mar 16, 2018
-
-
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).
-
- Apr 03, 2018
-
-
Mark OLESEN authored
Feature catalyst See merge request OpenFOAM-plus!195
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
- this can occur when OpenFOAM is run in serial mode, but connects to a program that starts/stops MPI on its own.
-
-
Mark OLESEN authored
- makes the meaning clearer
-
Mark OLESEN authored
-
- Mar 28, 2018
- Mar 27, 2018
-
-
Andrew Heather authored
ENH: reduce profiling overhead (issue #764) See merge request OpenFOAM-plus!194
-
Mark OLESEN authored
-
- Mar 26, 2018
-
-
Mark OLESEN authored
- avoid clockTime in favour of clockValue. - avoid allocations when profiling is not active. - replace hashing with manual pointer lists
-
Mark OLESEN authored
Updated/modified PtrList implementation See merge request OpenFOAM-plus!193
-
Mark OLESEN authored
-
Mark OLESEN authored
- in many cases can just use lookupOrDefault("key", bool) instead of lookupOrDefault<bool> or lookupOrDefault<Switch> since reading a bool from an Istream uses the Switch(Istream&) anyhow STYLE: relocated Switch string names into file-local scope
-
- Mar 22, 2018
-
-
Mark OLESEN authored
- this is a continuation of commit ba92e752 with simpler template logic.
-
Mark OLESEN authored
- improve internal handling to permit deriving resizable containers (eg, PtrDynList). - include '->' iterator dereferencing - Only append/set non-const autoPtr references. This doesn't break existing code, but makes the intention more transparent.
-
- Mar 21, 2018
-
-
Mark OLESEN authored
- specialize transfer and swap to ensure allocated capacity isn't forgotten.
-
- Mar 19, 2018
-
-
Mark OLESEN authored
- can assist the compiler in producing tighter code.
-
- Mar 22, 2018
-
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
- Mar 21, 2018
-
-
- occurred when the initial mesh distribution was missing cells on some processors.
-
Mark OLESEN authored
- easier to ensure that flags are consistent
-
Andrew Heather authored
The set of injectionMethods has been extended to include a new option: injectionMethod movingPoint; The position is then read as a TimeFunction1 entry, e.g. for a 'table' type: position table ( (0 (-0.009 0.0995 0)) (1e-3 (0.009 0.0995 0)) ); where the list corresponds to the tuples (time (position)), and the time is relative to the start of injection (SOI)
-
mattijs authored
-
mattijs authored
-
mattijs authored
-
- Mar 20, 2018
-
-
Andrew Heather authored
-
Andrew Heather authored
-
- Mar 19, 2018
-
-
Andrew Heather authored
-
- Mar 16, 2018
-
-
Mark OLESEN authored
-
- Mar 15, 2018
-
-
Mark OLESEN authored
- also ensure fewer side-effects from inplaceReorder - provide ListOps::reorder especially for PackedList and PackedBoolList since they behave differently from regular lists.
-
- Mar 14, 2018
-
-
Mark OLESEN authored
- this also provides a better separation of the intent (ie, inserting a single value, or inserting multiply values)
-
Andrew Heather authored
-
- Mar 13, 2018
-
-
Mark OLESEN authored
- using const reference to temporary was failing. Remedy by using a direct copy, which is a reasonable solution since surfZone content is quite minimal.
-
Andrew Heather authored
-