fixed a few little things
This commit is contained in:
+5
-4
@@ -9,6 +9,11 @@ void G4System::init(ConstructionWrapper &CW){
|
||||
if(CW.isAssigned()){
|
||||
throw std::runtime_error("ConstructionWrapper already assigned");
|
||||
}
|
||||
if(assigned_cw != nullptr){
|
||||
//reassign
|
||||
assigned_cw->unAssign();
|
||||
}
|
||||
assigned_cw = &CW;
|
||||
|
||||
char* argv[]={(char*)"dummy"};
|
||||
|
||||
@@ -33,10 +38,6 @@ void G4System::init(ConstructionWrapper &CW){
|
||||
//delete actionInitialization;
|
||||
}
|
||||
|
||||
// save layers of CW to G4System class
|
||||
G4System::cw = CW;
|
||||
|
||||
|
||||
G4String session;
|
||||
ui = nullptr;
|
||||
if ( gui ) {
|
||||
|
||||
Reference in New Issue
Block a user