Import Geant4 10.4.1 source tree

This commit is contained in:
Gabriele Cosmo
2018-03-02 09:34:30 +01:00
parent fc6af9e721
commit fe04dcb406
341 changed files with 18389 additions and 24522 deletions
+17 -2
View File
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4UImanager.cc 106172 2017-09-15 13:03:57Z gcosmo $
// $Id: G4UImanager.cc 108488 2018-02-15 14:52:00Z gcosmo $
//
//
// ---------------------------------------------------------------------
@@ -526,7 +526,22 @@ G4int G4UImanager::ApplyCommand(const char * aCmd)
{ histVec.erase(histVec.begin()); }
histVec.push_back(aCommand);
return targetCommand->DoIt( commandParameter );
targetCommand->ResetFailure();
G4int commandFailureCode = targetCommand->DoIt( commandParameter );
if(commandFailureCode==0)
{
G4int additionalFailureCode = targetCommand->IfCommandFailed();
if(additionalFailureCode > 0)
{
G4ExceptionDescription msg;
msg << targetCommand->GetFailureDescription() << "\n"
<< "Error code : " << additionalFailureCode;
G4Exception("G4UImanager::ApplyCommand","UIMAN0123",
JustWarning,msg);
commandFailureCode += additionalFailureCode;
}
}
return commandFailureCode;
}
void G4UImanager::StoreHistory(const char* fileName)