CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Bugs

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

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 10, 2008, 18:27
Default Hi, Should the "==" be "="
  #1
New Member
 
J. T.
Join Date: Mar 2009
Posts: 12
Rep Power: 8
cpplabs is on a distinguished road
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;
}
}
cpplabs is offline   Reply With Quote

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

Reply

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 19:13.