- 30 Jan, 2019 4 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
- assignment operators return a value, for consistency with bool. - partial revert of DEFAULT_TRUE, DEFAULT_FALSE, to reduce complexity.
-
mattijs authored
-
mattijs authored
-
- 29 Jan, 2019 4 commits
-
-
Andrew Heather authored
-
Andrew Heather authored
-
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.
-
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)
-
- 28 Jan, 2019 2 commits
-
-
Mark Olesen authored
- avoids removal of files and the dummy fallback
-
mattijs authored
-
- 26 Jan, 2019 1 commit
-
-
Mark Olesen authored
- as well as being more convenient to find, this is necessary when the OpenFOAM installation is without sources or tutorials
-
- 25 Jan, 2019 9 commits
-
-
Mark Olesen authored
- Can result in inadvertent conversions where the user should really know or check if the pointer is valid prior to using. - Still have several places to fix that are using the deprecated copy construct and copy assignment
-
Mark Olesen authored
- workaround for some old compilers many years ago, but no longer relevant
-
Mark Olesen authored
-
Mark Olesen authored
- in the previous version, a specification such as (U "U.*") would have selected the field name twice for writing
-
Mark Olesen authored
- can also be used for other purposes. Eg, if (ListOps::found(list, matcher)) { ... } vs. if (!findStrings(matcher, list).empty()) { ... }
-
Mark Olesen authored
- add compile-time detection of deprecated findIndex() function - replace occurrences of findIndex() with the equivalent container method
-
Mark Olesen authored
- simply a functionObject with an additional Time reference, which is a combination frequently used by concrete functionObjects
-
Mark Olesen authored
- use for-range when iterating - dictionary access/search methods - autoPtr for memory management
-
Mark Olesen authored
-
- 24 Jan, 2019 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
- changed the sectorCoeffs keyword to 'point' from 'axisPt' for more similarity with other dictionaries. Continue to accept 'axisPt' for compatibility.
-
- 23 Jan, 2019 18 commits
-
-
Mark Olesen authored
- allows use in surfMesh library, which does not depend on meshTools
-
Mark Olesen authored
-
Mark Olesen authored
-
Mark Olesen authored
-
Mark Olesen authored
-
Mark Olesen authored
- checkIn() was incorrectly conditional on the register state of the source object. Partial patch from .org commit 6dc48b62d948
-
mattijs authored
-
mattijs authored
-
mattijs authored
-
mattijs authored
-
mattijs authored
-
Mark Olesen authored
- now free anything owned by the registry when doing a clear. - the myriad of other ways to remove items (and potentially leaking) have not yet been addressed: * set, erase, retain, filterKeys, filterValues, filterEntries
-
Mark Olesen authored
- could be triggered if running in parallel, but requesting procIDs to be written with a non-parallel version of the writer.
-
Mark Olesen authored
- Uses the user-specified value for the HTC calculation { type externalCoupledTemperature; outputTemperture fluid; // or wall; htcRefTemperature user; // or cell (default) Tref 293.15; }
-
Mark Olesen authored
-
Mark Olesen authored
-
Mark Olesen authored
-
mattijs authored
-