- 03 Oct, 2018 1 commit
-
-
Mark Olesen authored
- allows reuse for other purposes
-
- 05 Oct, 2018 1 commit
-
-
Mark Olesen authored
- the opposite problem from issue #762. Now we also test if the input token stream had any tokens at all. - called by the dictionary get<> and readEntry() methods.
-
- 28 Sep, 2018 1 commit
-
-
Mark Olesen authored
- simply combines (rootPath()/globalCaseName())
-
- 11 Sep, 2018 1 commit
-
-
Andrew Heather authored
-
- 10 Sep, 2018 1 commit
-
-
Mark Olesen authored
- replaces previous pointer conversion
-
- 09 Aug, 2018 1 commit
-
-
Mark Olesen authored
- more consistent with dictionary method naming. The get<> or getList<> returns a value, doesn't read into a existing location.
-
- 08 Aug, 2018 1 commit
-
-
Mark Olesen authored
- allows single or multiple entries
-
- 03 Aug, 2018 2 commits
-
-
Mark Olesen authored
Style changes: - use lookupObjectRef instead of using const_cast - use tmp::New factory
-
Mark Olesen authored
- can be used in predicate matching - getNameOp, getTypeOp for accessing the name() and type() of objects
-
- 02 Aug, 2018 1 commit
-
-
Mark Olesen authored
- centralizes IOobject handling and treatment of alternative locations. If an alternative file location is specified, it will be used instead. - provide decompositionMethod::canonicalName instead of using "decomposeParDict" in various places.
-
- 31 Jul, 2018 1 commit
-
-
Mark Olesen authored
General: * -roots, -hostRoots, -fileHandler Specific: * -to <coordinateSystem> -from <coordinateSystem> - Display -help-compat when compatibility or ignored options are available STYLE: capitalization of options text
-
- 30 Jul, 2018 1 commit
-
-
Mark Olesen authored
- avoids compiler ambiguity when virtual methods such as IOdictionary::read() exist. - the method was introduced in 1806, and was thus not yet widely used
-
- 27 Jul, 2018 1 commit
-
-
Mark Olesen authored
- supports copy append and move append
-
- 26 Jul, 2018 2 commits
-
-
mattijs authored
-
Mark Olesen authored
- simplifies usage. Support syncPar check on names() to detect inconsistencies. - simplify readFields, ReadFields and other routines by using these new methods.
-
- 24 Jul, 2018 1 commit
-
-
Mark Olesen authored
- this eliminates a degree of ambiguity when resolving a read() method in inherited classes.
-
- 25 Jun, 2018 1 commit
-
-
mattijs authored
-
- 18 Jun, 2018 1 commit
-
-
Mark Olesen authored
- major() and minor() are GNU macros in sys/sysmacros.h and generates warning on some systems (eg, Ubuntu 18.04) use getMajor() and getMinor() as method names instead.
-
- 14 Jun, 2018 1 commit
-
-
Will Bainbridge authored
twoPhaseMixtureThermo writes the temperatures during construction only for them to be read again immediately after by construction of the individual phases' thermo models. When running with collated file handling this behaviour is not thread safe. This change deactivates threading for the duration of this behaviour. Patch contributed by Mattijs Janssens
-
- 22 Jun, 2018 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
- add additional control via a Foam::infoDetailLevel flag, which is supported by a 'DetailLevel' macro. Eg, DetailLevel << "some information" << nl - When infoDetailLevel is zero, the stdout for all Foam::system() calls are also redirected to stderr to prevent child output from appearing on the parent. - close stdin before exec in system call.
-
- 19 Jun, 2018 1 commit
-
-
Mark Olesen authored
-
- 01 Jun, 2018 2 commits
-
-
Mark Olesen authored
- this addresses issue #843
-
Mark Olesen authored
- Always used for optional dictionary entries, since these are individual values, and not meant to be embedded in a larger stream of tokens. Methods: - lookupOrDefault, lookupOrAddDefault, lookupOrDefaultCompat - readIfPresent, readIfPresentCompat - Handling mandatory dictionary entries is slightly more complex, since these may be part of larger stream of tokens, and are often used in a constructor context. For example, word modelType(dict.lookup("type")); Or they are used without a definite context. For example, dict.lookup("format") >> outputFormat; Newly introduced methods for mandatory dictionary entries: - get, getCompat - read, readCompat In a constructor or assignment context: word modelType(dict.get<word>("type")); outputFormat = dict.lookup("format"); without copy/move (similar to readIfPresent): dict.read("format", outputFormat);
-
- 30 May, 2018 2 commits
-
-
-
Mark Olesen authored
- make the purpose more explicit, and reduces some work for the compiler as well.
-
- 29 May, 2018 1 commit
-
-
Mark Olesen authored
- improves backward compatibility and more naming consistency. Retain setMany(iter1, iter2) to avoid ambiguity with the PackedList::set(index, value) method.
-
- 28 May, 2018 1 commit
-
-
Mark Olesen authored
- consistency with make and more succinct. - reduce code duplication in findEtcFiles.
-
- 24 Jan, 2018 1 commit
-
-
Mark Olesen authored
- runTimeModifiable change to the dictionary not being propagated to the underlying functionObjects
-
- 20 Dec, 2017 1 commit
-
-
mattijs authored
-
- 14 Dec, 2017 1 commit
-
-
Mark Olesen authored
-
- 13 Dec, 2017 1 commit
-
-
Andrew Heather authored
-
- 17 May, 2018 1 commit
-
-
Mark Olesen authored
- disallow insert() of raw pointers, since a failed insertion (ie, entry already existed) results in an unmanaged pointer. Either insert using an autoPtr, or set() with raw pointers or autoPtr. - IOobjectList::add() now takes an autoPtr instead of an object reference - IOobjectList::remove() now returns an autoPtr instead of a raw pointer
-
- 07 May, 2018 1 commit
-
-
Mark Olesen authored
- catch (value) - forward declarations for operator<<() - non-const access to Reaction name() - spurious return statement
-
- 02 May, 2018 1 commit
-
-
Mark Olesen authored
- this avoids some valgrind messages "Uninitialised byte(s) found during client check request"
-
- 27 Apr, 2018 2 commits
-
-
Mark Olesen authored
- controlled by the the 'printExecutionFormat' InfoSwitch in etc/controlDict // Style for "ExecutionTime = " output // - 0 = seconds (with trailing 's') // - 1 = day-hh:mm:ss ExecutionTime = 112135.2 s ClockTime = 113017 s ExecutionTime = 1-07:08:55.20 ClockTime = 1-07:23:37 - Callable via the new Time::printExecutionTime() method, which also helps to reduce clutter in the applications. Eg, runTime.printExecutionTime(Info); vs Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s" << " ClockTime = " << runTime.elapsedClockTime() << " s" << nl << endl; -- ENH: return elapsedClockTime() and clockTimeIncrement as double - previously returned as time_t, which is less portable.
-
Mark Olesen authored
-
- 26 Apr, 2018 1 commit
-
-
Mark Olesen authored
- since PackedBoolList is now a compatibility typedef for bitSet, it is useful to have an additional means of distinction. STYLE: simplify internal version tests and compiler defines. - the API version is now conveyed via the OPENFOAM define directly. The older OPENFOAM_PLUS define is provided for existing code.
-
- 25 Apr, 2018 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
- flags the following type of problems: * mismatches: keyword mismatch ( set of { brackets ) in the } entry; * underflow (too many closing brackets: keyword too many ( set of ) brackets ) in ) entry; - a missing semi-colon dict { keyword entry with missing semi-colon } will be flagged as 'underflow', since it parses through the '}' but did not open with it. Max monitoring depth is 60 levels of nesting, to avoid incurring any memory allocation.
-