use of pointers in openfoam
Hi all,
Because I am new to C++ programming and the OpenFOAM templates and tools, I have a rather simple question. I need to collect extra data for postprocessing (via fieldAverage) in every time step. Code:
//Calculate gradU and distribute to scalar Fields Code:
volScalarField gradux Thanks for the help! |
Quote:
Later, when you want to use any of these fields as a volField, they should be wrapped with a std::move() to get move semantics on construction. Of course you need to do that yourself, the compiler and class definitions won't do it for you. |
All times are GMT -4. The time now is 07:20. |