CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Bug compilation OpenFoam (https://www.cfd-online.com/Forums/openfoam-bugs/243475-bug-compilation-openfoam.html)

B6_lacen June 20, 2022 17:50

Bug compilation OpenFoam
 
1 Attachment(s)
Hello everyone,

I am currently working on reduced Order Models with ITHACAFV(c++ user developped library) , I made a modifcation in the c++ code and I have this error. (Modification: tried to initialize a submesh in class(ITHACAFVDEIM) definition in .c file using submesh(f(mesh)) command. where function f returns an autoPtr<fvMeshSubset>. An automatic Pointer object towards fvMeshSubset element. I don't know how to debug on OpenFoam. It would be great help if i had hints on this type of error.

Bonus question : How to we convert ore change an autoPtr<templ T> to a normal pointer?

Thank you.

Best regard,

Attachment 90358

olesen June 22, 2022 05:05

Quote:

Originally Posted by B6_lacen (Post 830153)
Bonus question : How to we convert ore change an autoPtr<templ T> to a normal pointer?


Not sure why this is a "bonus question" when the answer is already documented:
https://www.openfoam.com/documentati..._1autoPtr.html


All times are GMT -4. The time now is 05:57.