CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Bug in vectorField

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

LinkBack Thread Tools Display Modes
Old   September 5, 2007, 09:53
Default Yes - you are taking a referen
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,810
Rep Power: 25
hjasak will become famous soon enough
Yes - you are taking a reference to a temporary, which is wrong - time to look into a C++ book. Try:

vectorField test = UNull.boundaryField()[patchI].snGrad();

Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting:
hjasak is offline   Reply With Quote

Old   September 7, 2007, 08:09
Default Thank you very much! kind r
New Member
Stefan Furtlehner
Join Date: Mar 2009
Location: Vienna, Austria
Posts: 7
Rep Power: 10
stefan82 is on a distinguished road
Thank you very much!

kind regards,
stefan82 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visualisation of components of a vectorField nico OpenFOAM Paraview & paraFoam 1 May 29, 2006 09:49

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