CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Bugs

Should the %3d%3d in GeometricFieldstorePrevIter be %3d

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   February 10, 2008, 18:27
Default Hi, Should the "==" be "="
New Member
J. T.
Join Date: Mar 2009
Posts: 12
Rep Power: 10
cpplabs is on a distinguished road
Should the "==" be "=" in the following function? I guess it is supposed to do a copy and "=" should be used instead of "==".
// 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);
*fieldPrevIterPtr_ == *this;
cpplabs is offline   Reply With Quote

Old   February 10, 2008, 18:39
Default No: == is a forced assignment
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,806
Rep Power: 25
hjasak will become famous soon enough
No: == is a forced assignment version of =
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting:
hjasak is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -4. The time now is 20:10.