- 16 Jul, 2020 2 commits
-
-
Mark OLESEN authored
- with '&&' conditions, often better to check for non-null autoPtr first (it is cheap) - check as bool instead of valid() method for cleaner code, especially when the wrapped item itself has a valid/empty or good. Also when handling multiple checks. Now if (ptr && ptr->valid()) if (ptr1 || ptr2) instead if (ptr.valid() && ptr->valid()) if (ptr1.valid() || ptr2.valid())
-
Mark OLESEN authored
- less clutter using plain tests with the bool operator: (!ptr) vs (ptr.empty()) (ptr) vs (!ptr.empty())
-
- 15 Jul, 2020 2 commits
-
-
Mark OLESEN authored
- same as FixedList<bool,3> for I/O
-
Mark OLESEN authored
- since only pointers are stored, autoPtr is better fit than tmp
-
- 14 Jul, 2020 3 commits
-
-
Andrew Heather authored
Feature dynamic library - issue #1737 See merge request !375
-
Mark OLESEN authored
- This reflects the pre-existing coding situation where const_cast was used throughout to effect the same. STYLE: fix private/protected access - CodedField, codedMixedFvPatchField
-
Mark OLESEN authored
- libs() singleton method for global library handling - explicit handling of empty filename for dlLibraryTable open/close. Largely worked before, but now be more explicit about its behaviour. - add (key, dict) constructor and open() methods. More similarity to dimensionedType, Enum etc, and there is no ambiguity with the templated open(). - construct or open from initializer_list of names - optional verbosity when opening with auxiliary table, avoid duplicate messages or spurious messages for these. - basename and fullname methods (migrated from dynamicCode). - centralise low-level load/unload hooks - adjust close to also dlclose() aliased library names.
-
- 13 Jul, 2020 3 commits
-
-
mattijs authored
This is for a very specific use case where the faceZones are imprinted after meshing the normal geometry. This sometimes splits off badly connected bits of the mesh. One way to remove these is to use e.g. subsetMesh. This embeds the same functionality inside snappyHexMesh.
-
mattijs authored
-
mattijs authored
-
- 10 Jul, 2020 1 commit
-
-
Mark OLESEN authored
- replace `%namespace` directive with simpler `%static` directive. We always encapsulate Lemon parser routines in an anonymous namespace, so a simpler static linkage directive suffices. This reduces the size of the Lemon patch (program and template).
-
- 09 Jul, 2020 2 commits
-
-
Mark OLESEN authored
- makes it easier to distinguish between pointers referring to pool data versus pointers actually holding storage, avoids manual demand-driven deletion and autoPtr. ENH: simplify/improve Pstream profiling - times now double (not scalar) for consistency with what cpuTime delivers - use bool to track suspend state
-
mattijs authored
-
- 08 Jul, 2020 1 commit
-
-
mattijs authored
-
- 03 Jul, 2020 1 commit
-
-
Andrew Heather authored
-
- 01 Jul, 2020 1 commit
-
-
mattijs authored
-
- 30 Jun, 2020 1 commit
-
-
Andrew Heather authored
-
- 29 Jun, 2020 9 commits
-
-
Andrew Heather authored
-
Andrew Heather authored
-
Andrew Heather authored
-
Andrew Heather authored
-
Andrew Heather authored
-
Andrew Heather authored
-
Andrew Heather authored
-
Mark OLESEN authored
- When OpenFOAM is under git control and a 'debian/' directory exists, this could mean two things: 1) Additional debian control has been added to OpenFOAM 2) OpenFOAM has been imported into a debian project For the case that OpenFOAM has been imported into a debian project, using the git information would be highly misleading. There will be no OpenFOAM SHA1 correspondence. However, if additional debian control has been added to OpenFOAM the SHA1 will be valid. The ad hoc solution is to use an additional "openfoam.debian" directory to flag the addition of debian controls into openfoam. When a "debian/" directory exists without a "openfoam.debian", assume that the OpenFOAM has been imported into debian and do not use the SHA1.
-
Mark OLESEN authored
-
- 26 Jun, 2020 7 commits
-
-
Mark OLESEN authored
-
OpenFOAM bot authored
- fix older '> >' template parameters as '>>'
-
Mark OLESEN authored
-
Mark OLESEN authored
- used fluidThermo::typeName instead of fluidThermo::dictName within the Cp() method.
-
-
-
Mark OLESEN authored
- only checked if it started with '/' and not 'd:/' (for example).
-
- 25 Jun, 2020 7 commits
-
-
sergio authored
-
sergio authored
-
OpenFOAM bot authored
-
mattijs authored
-
Mark OLESEN authored
-
Mark OLESEN authored
- affects ensightSurfaceReader only. If there are no `*` characters, protect against replacement. Otherwise it would attempt to replace a zero-length string with a single `0`, which results in prepending the name. STYLE: ensightSurfaceReader constructor explicit
-
Andrew Heather authored
-