- 22 Dec, 2020 1 commit
-
-
Andrew Heather authored
-
- 16 Dec, 2020 2 commits
-
-
Mark OLESEN authored
-
Mark OLESEN authored
- previously always called dlclose on opened libraries when destroying the dlLibraryTable. However, by force closing the libraries the situation can arise that the library is missing its own code that it needs on unload (#1524). This is also sometimes evident when closing VTK libraries for runTimePostProcessing (#354, #1585). - The new default is to not forcibly dlclose any libraries, unless the dlcloseOnTerminate OptimisationSwitch specifies otherwise. - The dlLibraryTable::close() method can be used to explicitly close all libraries and clear the list. - The dlLibraryTable::clear() method now only clears the entries, without a dlclose.
-
- 11 Dec, 2020 2 commits
-
-
Mark OLESEN authored
COMP: fix SP/DP inconsistency in fvGeometryScheme STYLE: rename polyMesh::updateGeom to polyMesh::updateGeomPoints - avoids compiler complaints and potential masking of primitiveMesh::updateGeom / fvMesh::updateGeom - mark argument as movable, since that is what is happening inside. GIT: remove merge cruft TUT: better clean on MPPICInterFoam
-
This adds a 'geometry' scheme section to the system/fvSchemes: geometry { type highAspectRatio; } These 'fvGeometryMethod's are used to calculate - deltaCoeffs - nonOrthoCoeffs etc and can even modify the basic face/cellCentres calculation.
-
- 10 Dec, 2020 1 commit
-
-
- New solver: `acousticFoam` - New base finite-area region class: `regionFaModel` - New base shell model classes: - `vibrationShellModel` - `thermalShellModel` - New shell models: - A vibration-shell model: `KirchhoffShell` - A thermal-shell model: `thermalShell` - New finite-area/finite-volume boundary conditions: - `clampedPlate` - `timeVaryingFixedValue` - `acousticWaveTransmissive` - New base classes for `fvOption` of finite-area methods: `faOption` - New `faOption`s: - `contactHeatFluxSource` - `externalFileSource` - `externalHeatFluxSource` - `jouleHeatingSource` - New tutorial: `compressible/acousticFoam/obliqueAirJet` Signed-off-by:
Kutalmis Bercin <kutalmis.bercin@esi-group.com>
-
- 09 Dec, 2020 2 commits
-
-
mattijs authored
-
Mark OLESEN authored
- implicitly enabled when timeStampMaster (default) is used for the fileModificationChecking - When running with non-distributed roots (eg, NFS-share) read for processor directories on master only and send to sub-processes instead individual reads. - If disabled (old default, or when running with distributed roots), uses the regular fileHandler readDir, which may perform readDir on each processor. Potentially slow startup times on large systems. Improvements based on analysis from T.Aoyagi(RIST), A.Azami(RIST)
-
- 08 Dec, 2020 1 commit
-
-
Mark OLESEN authored
- UPstream::rangeType as typedef for IntRange<int> for better use semantics
-
- 30 Nov, 2020 1 commit
-
-
Mark OLESEN authored
-
- 25 Nov, 2020 1 commit
-
-
Mark OLESEN authored
- change to a templated implementation instead of relying on the container's writeList() method. This inlines the generation while also adding the flexibility to define different delimiters (at compile time) without the performance penalty of passing run-time parameters.
-
- 19 Nov, 2020 3 commits
-
-
Mark OLESEN authored
-
Mark OLESEN authored
- deprecated Feb-2018, but not marked as such. The set() method originally enforce an additional run-time check (Fatal if pointer was already set), but this was rarely used. In fact, the set() method was invariably used in constructors where the pointer by definition was unset. Can now mark as deprecated to catch the last of these. We prefer reset() for similarity with std::unique_ptr Eg, FOAM_EXTRA_CXXFLAGS="-DFoam_autoPtr_deprecate_setMethod" wmake
-
Mark OLESEN authored
- makes it clearer that these are constructors and not function calls
-
- 17 Nov, 2020 1 commit
-
-
Mark OLESEN authored
- uses ocountstream for the output, which swallows all output. Improves portability ENH: improved efficiency in countstreambuf - xsputn() instead of overflow - more consistent seek* methods
-
- 28 Oct, 2020 1 commit
-
-
Mark OLESEN authored
- consistent with FOAM_SIGFPE etc. - centralize code as error::useAbort() static function to avoid scattering the logic throughout the code. ENH: also accept "0" and "1" string values for Switch - not the normal path for Switch input (eg, from a dictionary), but consistent with bool definitions and simplifies string parsing. This means that `FOAM_SIGFPE=1 application` will now also work.
-
- 19 Oct, 2020 2 commits
-
-
Mark OLESEN authored
- can be useful when confronted with partial outputs - provision for redirecting error/warning
-
Mark OLESEN authored
ENH: add some scalar constants for .org compatibility (#1881) Although it can very much be a moving target, it can prove partly useful to have some compatibility constants/methods. - The wholesale change of 'GREAT' -> 'great' etc (JAN-2018), makes user coding for multiple versions problematic. When COMPAT_OPENFOAM_ORG is defined, now define constants (aliases) named as per the openfoam.org version. Values, however, remain identical. - For type-safe dictionary value retrieval, we have the templated get<> methods added around NOV-2018 and deprecated the lookupType method. The .org version followed suit in NOV-2019, but opted for renaming the templated lookupType method as a templated 'lookup' method. Using this is discouraged, but allowed when COMPAT_OPENFOAM_ORG is defined.
-
- 15 Oct, 2020 1 commit
-
-
Mark OLESEN authored
- provides a more direct means of generating a compound token without an Istream - add transferCompoundToken() without Istream reference - mark more token methods as noexcept
-
- 12 Oct, 2020 1 commit
-
-
Mark OLESEN authored
- slightly neater code when disabling/restoring parallel state New const bool oldParRun = Pstream::parRun(false); ... Pstream::parRun(oldParRun); Old const bool oldParRun = Pstream::parRun(); Pstream::parRun() = false; ... Pstream::parRun() = oldParRun;
-
- 02 Oct, 2020 1 commit
-
-
Mark OLESEN authored
- contents to be filled with a later assignment. This can help avoid deduction issues when populating from a list of tokens, and the templated version is selected: ``` template<class T> primitiveEntry(const keyType&, const T&); ``` ENH: support construct empty ITstream with given name - populate contents later by assigment
-
- 01 Oct, 2020 1 commit
-
-
Mark OLESEN authored
- provides consistency with identity(label, label) and looks more familiar than using labelRange::labels() - relocates labelRange IO operators to IntRange ENH: make sliceRange interators random access STYLE: scalarRanges::match() instead of predicate operator
-
- 28 Sep, 2020 2 commits
-
-
Mark OLESEN authored
- returns a range of `int` values that can be iterated across. For example, for (const int proci : Pstream::subProcs()) { ... } instead of for ( int proci = Pstream::firstSlave(); proci <= Pstream::lastSlave(); ++proci ) { ... }
-
Mark OLESEN authored
- returns a range of `int` values that can be iterated across. For example, for (const int proci : Pstream::allProcs()) { ... } instead of for (label proci = 0; proci < Pstream::nProcs(); ++proci) { ... }
-
- 10 Sep, 2020 1 commit
-
-
mattijs authored
-
- 10 Aug, 2020 1 commit
-
-
Mark OLESEN authored
- previously hidden as Detail::[IO]FstreamAllocator, now exposed directly as [io]fstreamPointer, which allows reuse for std::ifstream, std::ofstream wrapping, without the additional ISstream, OSstream layers. These stream pointers have some characteristics similar to a unique_ptr. - restrict direct gzstream usage to two files (fstreamPointers.C, gzstream.C) which improves localization and makes it simpler to enable/disable with the `HAVE_LIBZ` define. The HAVE_LIBZ define is currently simply hard-coded in the Make/options. If compiled WITHOUT libz support: - reading gz files : FatalError - writing gz files : emit warning and downgrade to uncompressed - warn if compression is specified in the case controlDict and downgrade to uncompressed ENH: minor updates to gzstream interface for C++11 - support construct/open with std::string for the file names. CONFIG: provisioning for have_libz detection as wmake/script
-
- 06 Aug, 2020 1 commit
-
-
Mark OLESEN authored
- additional "errors" entry with enumerated values (default|warn|ignore|strict) for defining warning or error at construct or runtime stage - default : construct = warn, runtime = fatal - warn : construct = warn, runtime = warn - ignore : construct = silent, runtime = silent - strict : construct = fatal, runtime = fatal The errors control can be added at the top-level and/or for individual function objects.
-
- 30 Jul, 2020 1 commit
-
-
Mark OLESEN authored
-
- 22 Jul, 2020 2 commits
-
-
Mark OLESEN authored
- previously setting FOAM_ABORT would preempt checks for throwing exceptions. Now check for throwing first, to allow try/catch code to do its job. However, ignore exception throwing for abort(). These are used infrequently in the code, but indicate that recovery is deemed impossible. STYLE: use unique_ptr for internal stream buffer management
-
Mark OLESEN authored
-
- 16 Jul, 2020 2 commits
-
-
Mark OLESEN authored
- cleaner code, more similarity with unique_ptr Now if (ptr) if (!ptr) instead if (ptr.valid()) if (!ptr.valid())
-
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())
-
- 14 Jul, 2020 2 commits
-
-
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.
-
- 09 Jul, 2020 1 commit
-
-
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
-
- 26 Jun, 2020 1 commit
-
-
Mark OLESEN authored
- only checked if it started with '/' and not 'd:/' (for example).
-
- 23 Jun, 2020 1 commit
-
-
Mark OLESEN authored
-
- 22 Jun, 2020 2 commits
-
-
Mark OLESEN authored
- only checked if it started with '/' and not 'd:/' (for example).
-
Mark OLESEN authored
-
- 16 Jun, 2020 1 commit
-
-
Mark OLESEN authored
-