Message: Problem when change geometry using DefineWorldVolume() function with parallel geometry Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Problem when change geometry using DefineWorldVolume() function with parallel geometry 

Forum: Geometry
Date: 11 Mar, 2012
From: Ming Shenjin <Ming Shenjin>

Hi everyone,
Recently, I tried parallel geometry in my simulation code under Geant 4.9.1, but I have a problem when I using DefineWorldVolume() function to change the geometry between runs. I found that if I do not change geometry between runs, the simulation with parallel geometry is okay, but if I change geometry using the following code, there comes a segmentation fault.
G4GeometryManager::GetInstance()->OpenGeometry(); 
	runManager->DefineWorldVolume(detector->Construct(),true);
And if I give up parallel geometry, the simulation is also ok.
I wonder if I can use parallel geometry and the above code to change geometry between runs at the same time. And, how can I achieve the objective?
Any suggestion is highly appreciate!
Yours
Sam

 Add Message Add Message
to: "Problem when change geometry using DefineWorldVolume() function with parallel geometry"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]