tkeskita
08/09/2025, 5:03 PMautoPtr<edgeMesh> initEdges(nullptr);
...
if (init_edges)
{
initEdges.reset(new edgeMesh(initEdgesFileName));
}
...
func(initEdges);
So the question is, how can I check inside function func that is initEdges allocated or not before I try to use it?
If I simply try to use it I get error
--> FOAM FATAL ERROR:
object of type N4Foam8edgeMeshE is not allocated