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

Bug in GeometricScalarFieldC

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 19, 2009, 02:07
Default Hello, With the help of Ber
  #1
New Member
 
Peter Johnston
Join Date: Mar 2009
Location: Brisbane, Queensland, Australia
Posts: 23
Rep Power: 7
prjohnston is on a distinguished road
Hello,

With the help of Bernhard, we tracked down a bug in GeometricScalarField.C in relation to the pow function. Line 157 reads:

dimensionedScalar("1", 1.0, gsf2.dimensions())

but should read

dimensionedScalar("1", gsf2.dimensions(), 1.0)

The same comments apply to lines 186 and 217.

Regards,

Peter
prjohnston is offline   Reply With Quote

Old   February 19, 2009, 02:59
Default Thank you very much for the bu
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 12
henry is on a distinguished road
Thank you very much for the bug report. This error is a legacy from when I changed the order of the constructor arguments to make dimensionedType more consistent with the rest of the code. I will push the corrected version to 1.5.x shortly.

H
henry is offline   Reply With Quote

Old   December 11, 2010, 14:35
Default
  #3
Member
 
Daniel
Join Date: Jul 2010
Location: California
Posts: 39
Rep Power: 6
hyperion is on a distinguished road
Hi I am having trouble with the pow function with volScalarField as an argument. Would this be a related problem?

Thanks
hyperion 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 17:19.