CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Bug in vectorField (https://www.cfd-online.com/Forums/openfoam-solving/59460-bug-vectorfield.html)

hjasak September 5, 2007 09:53

Yes - you are taking a referen
 
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

stefan82 September 7, 2007 08:09

Thank you very much! kind r
 
Thank you very much!

kind regards,
stefan


All times are GMT -4. The time now is 12:35.