76de104daa
ENH: fileModificationSkew: add polling. Fixes #1472 .
2019-11-27 14:13:01 +00:00
1310e85225
ENH: support 'get()' for retrieving argList options
...
- previously only had 'opt<..>()' for options, but 'get<..>()'
provides more similarity with dictionary methods.
The 'opt<..>()' method is retained.
2019-11-26 21:07:11 +01:00
29ccc00c7d
COMP: incorrect specialization namespace
2019-11-26 07:39:52 +01:00
6dd3cd0e51
ENH: add clear/append method to Enum and std::ostream output
...
- allows use of Enum in more situations where a tiny Map/HashTable
replacement is desirable. The new methods can be combined with
null constructed for to have a simple low-weight caching system
for words/integers instead of fitting in a HashTable.
2019-11-25 18:15:31 +01:00
daac96f165
ENH: addition of expressions::exprResult
...
- polymorphic field/result
2019-11-18 11:29:53 +01:00
492705b0cf
COMP: provide dummy methods and operations for pointPatchField
...
- since pointPatchField is not derived from Field, methods such as
negate() or a unary min(), max() are missing.
These have apparently not been needed thus far, but are used
indirectly via GeometricField.
2019-11-22 19:20:09 +01:00
7c3ec88bca
ENH: additional GeometricField::New static constructors
...
STYLE: split off into separate file
2019-11-22 11:31:22 +01:00
73425eb119
ENH: add FieldOps with conditionals (assignment, ternary)
2019-11-20 20:35:55 +01:00
fae91edd85
ENH: basics for expression string handling
2019-11-20 16:32:32 +01:00
42a9a6ae5a
ENH: add generator class for uniform/gaussian random numbers
...
- can be used in combination with std::generate, or as a substitute
unary operator to supply random numbers for std::transform.
2019-11-21 09:40:00 +01:00
cc138b0d82
COMP: make Random constructor explicit
2019-11-21 12:01:23 +01:00
cd366b60cc
ENH: add explicit flipBoolOp, tighten access on pass-through (noOp) version
...
- the noOp now returns const reference, noexcept
2019-11-20 19:48:09 +01:00
2d7bad2d2e
COMP: add value_type to pointPatchField
2019-11-20 20:35:44 +01:00
06361f3f05
STYLE: additional notes for IOobject, regIOobject
2019-11-20 11:55:47 +01:00
83d6aa424a
ENH: add move reset and move assignment for tmp, tmpNrc
...
- improves similarity to autoPtr. Simplifies coding.
Example,
tmp<volScalarField> tfield;
// sometime later...
tfield.reset
(
volScalarField::New("myfield", mesh, dimensionedScalar(Zero))
);
- as per tmp, disallow tmpNrc assignment from literal nullptr
- as per autoPtr, allow explicit test as bool (same as valid).
2019-11-19 20:21:42 +01:00
9e6683f7bc
ENH: add conditionals to #eval (string to scalar)
...
Example,
($radius > 10) ? sin(degToRad(45)) : cos(degToRad(30))
- protect division and modulo against zero-divide.
- add scanner/parser debugging switches in the namespace,
selectable as "stringToScalar". For example,
debug parser: foamDictionary -debug-switch stringToScalar=2
debug scanner: foamDictionary -debug-switch stringToScalar=4
debug both: foamDictionary -debug-switch stringToScalar=6
2019-11-19 14:22:03 +01:00
a5a222f7cf
ENH: support scalar tokens when testing #if, #ifeq
...
- this allows use of #eval results in the tests
2019-11-19 09:00:00 +01:00
0838d121c6
ENH: allow env variables when expanding for the #eval function
...
- this makes it behave more like other dictionary components.
2019-11-19 08:57:19 +01:00
0597172940
ENH: Allow explicit construct Switch from float/double
...
- can be useful when a scalarField has been used to store booleans and
we need to recover a bool directly and deal with potential rounding
issues.
ENH: support "any" as a Switch counterpart to "none"
2019-11-19 08:26:43 +01:00
cf917b4103
STYLE: consistent declarations for oneField, zeroField etc
2019-11-19 09:38:52 +01:00
2d080ff331
Feature single precision solve type
2019-11-19 11:10:07 +00:00
7c2ad98834
ENH: improve missing entry message for Function1 or PatchFunction1
...
- now indicate that the dictionary entry is missing, not that it is
an unknown function type.
STYLE: adjust PatchFunction1New.C to have logic structure look similar
2019-11-18 15:34:52 +01:00
4d18fea8e1
ENH: add value_type to dimensioned type. Add Switch::name(bool)
2019-11-18 09:13:58 +01:00
2a8669b3f8
ENH: add zip/unzip for GeometricField
2019-11-15 17:29:50 +01:00
a3d0a7d049
STYLE: add documentation to GeometricField::New
...
- also use tmp::New forwarding internally
2019-11-15 15:54:37 +01:00
cf2b84ef32
ENH: add zip/unzip for FieldField
2019-11-15 13:32:27 +01:00
6882ed35a4
ENH: add zip/unzip for vector and tensor fields
...
- the full tensor also supports zip/unzip rows/cols
and unzipRow, unzipCol, unzipDiag
2019-11-15 12:56:23 +01:00
39a1191bd5
ENH: add zip/unzip functions for complexField and vector2DField
2019-11-15 11:26:45 +01:00
a23e8bf540
STYLE: remove unused vector 'zip' function and unused .C files
2019-11-15 10:41:00 +01:00
a400bfae21
ENH: add rows/cols setters to Tensor, Tensor2D
...
- also support transposed construction when given a set of vectors
2019-11-15 09:18:52 +01:00
0d71607bab
STYLE: remove extraneous descriptions from misc IOList.C files
2019-11-13 19:18:02 +01:00
6798c61047
ENH: add boolIOField to allow registering
2019-11-13 18:54:10 +01:00
98467036b3
STYLE: regularize quoting and exit on failed 'cd'
2019-11-13 13:19:16 +01:00
61d2408e1e
BUG: polyMesh: update instead of delete. Fixes #1490 .
2019-11-11 15:36:02 +00:00
cb53ce3678
COMP: improvements to selection table helper classes
...
- make constructors explicit, delete unused constructors
2019-11-12 14:29:53 +01:00
3b0d532614
STYLE: restore referenced source file name removed by ea5401c7
2019-11-11 20:29:28 +01:00
7c1190f0b1
ENH: rationalize some string methods.
...
- silently deprecate 'startsWith', 'endsWith' methods
(added in 2016: 2b14360662 ), in favour of
'starts_with', 'ends_with' methods, corresponding to C++20 and
allowing us to cull then in a few years.
- handle single character versions of starts_with, ends_with.
- add single character version of removeEnd and silently deprecate
removeTrailing which did the same thing.
- drop the const versions of removeRepeated, removeTrailing.
Unused and with potential confusion.
STYLE: use shrink_to_fit(), erase()
2019-11-11 18:50:00 +01:00
ea214727a5
ENH: 'set' instead of 'insert' std::initializer_list to HashTable
...
- Duplicate entries are handled by overwriting, which corresponds more
closely to the notion of assignment
2019-11-11 17:07:30 +01:00
9bf48db7fd
STYLE: spurious #warning emitted in JobInfo
2019-11-11 14:32:44 +01:00
71de630722
ENH: tune efficiency of stringOps::trim
...
- move left/right positions prior to substr
2019-11-10 10:50:49 +01:00
060a14394f
STYLE: use dictionary findEntry instead of csearch
...
- fix typo
2019-11-09 16:41:42 +01:00
5e50800e2f
ENH: improve missing entry message for Function1 or PatchFunction1
...
- now indicate that the dictionary entry is missing, not that it is
an unknown function type.
2019-11-09 16:39:15 +01:00
87330972d8
ENH: interpolationTable improvements
...
- reduce code duplication, support returning multiple interpolations
as a Field
2019-08-23 15:57:22 +02:00
ec7e3c88e4
ENH: test for WM_PROJECT_DIR being set/unset in scripts
2019-11-06 09:18:51 +01:00
e8fa46230a
ENH: add min/max compare/reduction operators for Tuple2 first()
...
- min/max ops that only compare the first element
2019-11-05 13:08:21 +01:00
b0c88dff58
ENH: treat self-assignment as no-op instead of a Fatal ( #1473 )
...
- this can help if using std algorithms that return a const reference
such as std::min() does.
2019-11-05 11:10:49 +01:00
e3b9bbab11
STYLE: mark facePointPatch::patch() as virtual, remove unused functions
2019-11-04 18:05:53 +01:00
fdf8d10ab4
Merge commit 'e9219558d7' into develop-v1906
2019-12-05 11:47:19 +00:00
ee7bb0459b
ENH: dimensionSet::clear() - reset exponents to be dimensionless
2019-11-04 16:37:57 +01:00
e9219558d7
GIT: Header file updates
2019-10-31 14:48:44 +00:00