|
[Sponsors] |
Should the %3d%3d in GeometricFieldstorePrevIter be %3d |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 10, 2008, 17:27 |
Hi,
Should the "==" be "="
|
#1 |
New Member
J. T.
Join Date: Mar 2009
Posts: 12
Rep Power: 17 |
Hi,
Should the "==" be "=" in the following function? I guess it is supposed to do a copy and "=" should be used instead of "==". Thnaks. =============================================== // Store previous iteration field template<class> class PatchField, class GeoMesh> void Foam::GeometricField<type,>::storePrevIter() const { if (!fieldPrevIterPtr_) { if (debug) { Info<< "Allocating previous iteration field" << endl <<>info() << endl; } fieldPrevIterPtr_ = new GeometricField<type,>(*this); } else { *fieldPrevIterPtr_ == *this; } } |
|
February 10, 2008, 17:39 |
No: == is a forced assignment
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33 |
No: == is a forced assignment version of =
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
|
|