Commit Graph

116 Commits

Author SHA1 Message Date
6e573ad7e8 UList: Rationalize assignment (shallow-copy vs deep-copy)
//- Disallow default shallow-copy assignment
    //
    //  Assignment of UList<T> may need to be either shallow (copy pointer)
    //  or deep (copy elements) depending on context or the particular type
    //  of list derived from UList and it is confusing and prone to error
    //  for the default assignment to be either.  The solution is to
    //  disallow default assignment and provide separate 'shallowCopy' and
    //  'deepCopy' member functions.
    void operator=(const UList<T>&) = delete;

    //- Copy the pointer held by the given UList.
    inline void shallowCopy(const UList<T>&);

    //- Copy elements of the given UList.
    void deepCopy(const UList<T>&);
2016-04-03 10:26:05 +01:00
730f89dc9d Use Zero rather than pTraits<Type>::zero unless a static typed '0' is required 2016-03-22 17:46:52 +00:00
95d146ecdf Rationalized the indentation of C-preprocessor directives 2016-02-29 15:42:03 +00:00
cd852be3da OpenFOAM: Updated all libraries, solvers and utilities to use the new const-safe tmp
The deprecated non-const tmp functionality is now on the compiler switch
NON_CONST_TMP which can be enabled by adding -DNON_CONST_TMP to EXE_INC
in the Make/options file.  However, it is recommended to upgrade all
code to the new safer tmp by using the '.ref()' member function rather
than the non-const '()' dereference operator when non-const access to
the temporary object is required.

Please report any problems on Mantis.

Henry G. Weller
CFD Direct.
2016-02-26 17:31:28 +00:00
f4ba71ddd0 OpenFOAM libraries: Updated to use the new const-safe tmp 2016-02-26 08:13:59 +00:00
aa38e25c92 Info -> InfoInFunction and updated comments 2016-01-20 17:51:15 +00:00
5779e4fd16 Info -> InfoInFunction and updated comments 2016-01-20 16:21:37 +00:00
68e86f97fe Info -> InfoInFunction and updated comments 2016-01-20 10:18:13 +00:00
1896599d8b Add support for flex-2.6
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1974
2016-01-18 19:44:38 +00:00
392310db22 Update headers 2016-01-11 13:02:52 +00:00
f19f48132e Consistently indent continuation backslashes in macro definitions 2016-01-11 13:00:56 +00:00
56fa7c0906 Update code to use the simpler C++11 template syntax removing spaces between closing ">"s 2016-01-10 22:41:16 +00:00
4eba393fe1 Update code to use the simpler C++11 template syntax 2016-01-10 19:20:16 +00:00
c4d5f65a10 Completed update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the
function signature string.
2015-11-11 09:03:39 +00:00
42fb1b9e8e Updated notImplemented -> NotImplemented
The new NotImplemented macro uses __PRETTY_FUNCTION__ for GNU compatible
compilers otherwise __func__ to provide the function name string.
2015-11-01 10:26:37 +00:00
94401af010 Resolved issues with virtual function inheritance and warning from clang
Also removed __GNUC__ conditional compilation statements which are no
longer needed.
2015-07-17 12:11:37 +01:00
72300041df Removed use of the deprecated "register" keyword
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4340.html
2015-06-30 10:26:44 +01:00
8628ef2fea Corrected capitalization of Doxygen documentation comments 2015-02-14 13:10:15 +00:00
0ea062816e Correct section comment: there can only be one destructor 2015-02-12 21:57:29 +00:00
f4596ad247 Resolve issues relating to compilation with clang-3.5.0 2014-12-15 22:38:10 +00:00
85c60ecc34 ENH: OBJstream: relaxed input 2014-01-27 12:28:18 +00:00
bf982e8ce9 STYLE: STLpoint: extraneous file 2013-09-10 10:08:41 +01:00
0a6b9a36d6 ENH: OBJstream: add line with normals 2013-05-10 16:17:24 +01:00
100a25ee25 STYLE: defineDebug: move into Foam namespace 2012-12-17 17:35:42 +00:00
e8ff31f9e8 ENH: Time: use constant(), time() instead of hardcoded strings 2012-12-06 08:24:54 +00:00
6bd16e1eef ENH: OBJstream: output triPointRef 2012-11-13 12:17:41 +00:00
e9268406dc ENH: OBJstream: convenient way of writing obj files 2012-09-27 16:55:14 +01:00
9ec1e9d2c2 BUG: UnsortedMeshedSurface: zone ordering returns original to sorted map 2012-05-30 11:41:47 +01:00
a2ca7b1933 BUG: MeshedSurface: cannot transfer copy 2012-05-29 18:06:37 +01:00
4da7f7a43a BUG: MeshedSurface: stitchFaces did not truncate faceMap 2012-04-18 15:41:48 +01:00
6198cfc369 ENH: VTKSurfaceFormat: read STLSolidLabelling for region info 2012-03-26 14:06:02 +01:00
2f529221fb ENH: vtkUnstructuredReader: reader for unstructured-ascii-vtk data (edgeMeshes and surfMeshes) 2012-03-02 17:40:57 +00:00
d1cf3b3fdb BUG: MeshSurface: no clearout of topology upon movePoints 2011-11-08 16:37:55 +00:00
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
56e07de724 STYLE: changed some missed doxygen '@' to '\' 2011-02-14 10:00:48 +01:00
1e4d26429b Merge remote branch 'OpenCFD/master' into olesenm 2011-02-14 09:47:49 +01:00
a63cf3cba9 STYLE: remove editing junk 2011-02-11 16:45:36 +01:00
c3cb632c24 Documentation: converted javadoc @ to LaTeX style \ in Doxygen code docs 2011-02-08 18:22:00 +00:00
eaef8d482b STYLE: Updated 1991 start copyright year to 2004 2011-01-14 16:08:00 +00:00
099cc39e2e Revert "STYLE: 2011 copyright date."
This reverts commit b18f6cc1ce.
2011-01-05 18:24:29 +00:00
b18f6cc1ce STYLE: 2011 copyright date. 2011-01-05 11:14:26 +00:00
e09a227a48 COMP: qualify methods from surfaceFormatsCore 2010-12-17 16:20:17 +01:00
9224daad7b COMP: add 'this->' qualifier to find methods in base case 2010-12-17 15:39:50 +01:00
6d73c32b04 ENH: new triFace methods to match those in face. FaceType typedef for surface meshes 2010-11-26 18:47:08 +01:00
d5acd22a63 STYLE: use labelUList typedef instead of UList<label> or unallocLabelList 2010-11-02 09:32:32 +01:00
c21cbfb330 ENH: use CompactIOList for binary face and cell IOList. 2010-09-30 20:58:38 +01:00
4d870512a6 Merge branch 'master' of ssh://graham@hunt//home/noisy3/OpenFOAM/OpenFOAM-dev 2010-07-28 14:05:18 +01:00
d79237597e STYLE: Fixing code style requirements for all src. 2010-07-28 13:31:46 +01:00
0b9ff0aa53 ENH: add trailing commas to proSTAR *.inp to cope with STARCCM+ read bug 2010-07-26 13:18:54 +02:00
317ea696f9 COMP: STLsurfaceFormatCore : signed/unsigned comparison 2010-06-22 17:25:30 +01:00