|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
J. T.
Join Date: Mar 2009
Posts: 12
Rep Power: 6 ![]() |
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; } } |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,695
Rep Power: 17 ![]() |
No: == is a forced assignment version of =
__________________
Hrvoje Jasak |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|