- for codedFunctionObject and CodedSource the main code snippets were not included in the SHA1 calculation, which meant that many changes would not be noticed and no new library would be compiled. As a workaround, a dummy 'code' entry could be used solely for the purposes of generating a SHA1, but this is easily forgotten. We now allow tracking of the dynamicCodeContext for the coded objects and append to the SHA1 hasher with specific entries. This should solve the previous misbehaviour. We additionally add information about the ordering of the code sections. Suppose we have a coded function object (all code segments are optional) with the following: codeExecute ""; codeWrite #{ Info<< "Called\n"; #}; which we subsequently change to this: codeExecute #{ Info<< "Called\n"; #}; codeWrite ""; If the code strings are simply concatenated together, the SHA1 hashes will be identical. We thus 'salt' with their semantic locations, choosing tags that are unlikely to occur within the code strings themselves. - simplify the coded templates with constexpr for the SHA1sum information. - Correct the CodedSource to use 'codeConstrain' instead of 'codeSetValue' for consistency with the underlying functions. |
||
---|---|---|
.gitlab | ||
applications | ||
bin | ||
doc | ||
etc | ||
META-INFO | ||
modules | ||
src | ||
tutorials | ||
wmake | ||
.gitignore | ||
.gitmodules | ||
Allwmake | ||
Allwmake-scan | ||
BuildIssues.txt | ||
COPYING | ||
README.md |
About OpenFOAM
OpenFOAM is a free, open source CFD software released and developed primarily by OpenCFD Ltd since 2004. It has a large user base across most areas of engineering and science, from both commercial and academic organisations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to acoustics, solid mechanics and electromagnetics. More...
OpenFOAM is professionally released every six months to include customer sponsored developments and contributions from the community - individual and group contributors, fork re-integrations including from FOAM-extend and OpenFOAM Foundation Ltd - in this Official Release sanctioned by the OpenFOAM Worldwide Trademark Owner aiming towards one OpenFOAM.
Copyright
OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See the file COPYING in this directory or http://www.gnu.org/licenses/, for a description of the GNU General Public License terms under which you can copy the files.
OpenFOAM Trademark
OpenCFD Ltd grants use of its OpenFOAM trademark by Third Parties on a licence basis. ESI Group and OpenFOAM Foundation Ltd are currently permitted to use the Name and agreed Domain Name. For information on trademark use, please refer to the trademark policy guidelines.
Please contact OpenCFD if you have any questions on the use of the OpenFOAM trademark.
Violations of the Trademark are continuously monitored, and will be duly prosecuted.
Useful Links
- Download and installation instructions
- Documentation
- Reporting bugs/issues/feature requests
- OpenFOAM Community
- Contacting OpenCFD
Copyright 2016-2018 OpenCFD Ltd