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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2008, 17:27
Default Hi, Should the "==" be "="
  #1
New Member
 
J. T.
Join Date: Mar 2009
Posts: 12
Rep Power: 17
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, 17:39
Default No: == is a forced assignment
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
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


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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:19.