TFoam

I do write (I think) TFoam to the file:

FoamX->SetRho(rho); FoamX->SetPseRan(PseRan); FoamX->Initialize(); // Initialize simulator FoamX->Write("FoamX");
then I close it properly:

RootFile.Write(); RootFile.Close();

then I open my file:

[code]TFile fileA(“rmain.root”); // connect disk file
fileA.cd();

fileA.ls();
fileA.Map();
fileA.ShowStreamerInfo();
fileA.GetListOfKeys()->Print();
TFOAM FoamX = (TFOAM)fileA.Get(“FoamX”); // find object[/code]

Up to here no error no problem
Any attempt to get anything from Foamx like I put bellow is returning

*** Break *** segmentation violation

FoamX->LinkCells(); // restore pointers of the binary tree of cells FoamX->CheckAll(1);

thanks in advance!

Hi,

Were you able to resolve this issue?

Philippe.