CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Bug in vectorField

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 5, 2007, 10:53
Default Yes - you are taking a referen
  #1
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,748
Rep Power: 20
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();

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

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

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


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


All times are GMT -4. The time now is 17:45.