- 08 Jan, 2019 1 commit
-
-
Mark OLESEN authored
-
- 07 Jan, 2019 1 commit
-
-
Mark OLESEN authored
- reduced clutter when iterating over containers
-
- 08 Jan, 2019 4 commits
-
-
Mark OLESEN authored
- a FixedList is generally small so there is little advantage in a compact output form for uniform content. Eg, "2{-1}" By avoiding this compact form we obtain output that is also consistent with Tuple2, for example. - make FixedList construct from Istream explicit
-
Mark OLESEN authored
- relocate the pair_entry (HashTable) and unary_entry (HashSet) into the Detail namespace and add output handling. The output handling at this level removes the reliance on zero::null output (HashSet) and allows direct support of pointers. This means that the following now works HashTable<T*> tbl; os << tbl; It also means that we don't need to overload operator<< for HashPtrTable anymore. - avoid delete/new when calling HashSet::set(). If the entry already exists there is no reason to remove it and add another one with the same content. STYLE: HashTable iterators now have a val() method - identical to the object() iterator method, but shorter to type.
-
Mark OLESEN authored
-
Mark OLESEN authored
-
- 07 Jan, 2019 12 commits
-
-
Mark OLESEN authored
-
Mark OLESEN authored
- fixed some more places with an explicit AUTO_WRITE. BUG: revert handling of the readOption. It should not be NO_READ. In cases where the user a IOobject without specifying read/write, it defaults to NO_READ anyhow. However, the move constructor can also be called with empty lists and a read option. This has the same signature, but obviously will not work with NO_READ.
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
- uses the value of foamVersion::api, which should be reliable.
-
mattijs authored
-
mattijs authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
mattijs authored
-
Mark OLESEN authored
-
Mark OLESEN authored
- identical to found(), which should be used for more consistency. The contains() is a remnant from when hashedWordList was generalized from a speciesTable (OCT 2010)
-
- 06 Jan, 2019 2 commits
-
-
Mark OLESEN authored
- and support setting cmake_version within the paraview config files
-
Mark OLESEN authored
- looks slightly messier without associative arrays, but improves portability. Should now also work with dash. STYLE: support wmakeBuildInfo -cmp and -check options as equivalent
-
- 04 Jan, 2019 1 commit
-
-
Mark OLESEN authored
- applies to HashTable and Linked-Lists - deprecate the Linked-List iterator found() method, since this makes less sense (linguistically)
-
- 03 Jan, 2019 5 commits
-
-
Mark OLESEN authored
-
Mark OLESEN authored
- a holdover from introducing the endBlock() method
-
mattijs authored
-
Mark OLESEN authored
- provide a lookupOrDefault constructor form, since this is a fairly commonly used requirement and simplifies the calling sequence. Before dimensionedScalar rhoMax ( dimensionedScalar::lookupOrDefault ( "rhoMax", pimple.dict(), dimDensity, GREAT ) ); After dimensionedScalar rhoMax("rhoMax", dimDensity, GREAT, pimple.dict()); - read, readIfPresent methods with alternative lookup names. - Mark the Istream related constructors with compile-time deprecated warnings. BUG: read, readIfPresent methods not handling optional dimensions (#1148)
-
Mark OLESEN authored
-
- 02 Jan, 2019 8 commits
-
-
Mark OLESEN authored
-
Mark OLESEN authored
STYLE: use standard dimensionedSets
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
- backend settings for scan-build
-
Mark OLESEN authored
STYLE: generalize rule for obtaining compiler stem
-
Mark OLESEN authored
- The chemistryReader is only used during construction of reactingMixture and thus does not require public visibility.
-
- 21 Dec, 2018 4 commits
-
-
Mark OLESEN authored
- this scripts are largely pre-git era and not used much anymore. Relocate to a legacy/ sub-directory while we see if there are actually any still being used.
-
Mark OLESEN authored
- the utility had automatic triangulation removed some time ago, but never changed its name. - catch old uses with a surfaceMeshTriangulate deprecated script
-
Mark OLESEN authored
-
Mark OLESEN authored
-
- 20 Dec, 2018 2 commits
-
-
Mark OLESEN authored
- can be used as a more natural test on the iterator. For example, with HashTable<..> table; auto iter = table.find(...); Following are now all equivalent: 1. if (iter != table.end()) ... 2. if (iter.found()) ... 3. if (iter) ...
-
Mark OLESEN authored
- similar to autoPtr and unique_ptr. Returns the pointer value without any checks. This provides a simple way for use to use either an autoPtr or a tmp for local memory management without accidentally stealing the pointer. Eg, volVectorField* ptr; tmp<volVectorField> tempField; if (someField.valid()) { ptr = someField.get(); } else { tempField.reset(new volVectorField(....)); ptr = tmpField.get(); } const volVectorField& withField = *ptr; STYLE: make more tmp methods noexcept
-