Skip to content

Commit

Permalink
Merge pull request #123 from rest-for-physics/lobis-quenching-warning
Browse files Browse the repository at this point in the history
Give warning instead of error on quenching process when volume not matched
  • Loading branch information
lobis authored Apr 5, 2024
2 parents c0571cb + 5e93e50 commit da06979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TRestGeant4QuenchingProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ void TRestGeant4QuenchingProcess::InitProcess() {
}

if (physicalVolumes.empty()) {
cerr << "TRestGeant4QuenchingProcess: No volume found matching expression " << userVolume << endl;
exit(1);
RESTWarning << "TRestGeant4QuenchingProcess: No volume found matching expression: " << userVolume
<< RESTendl;
}

for (const auto& physicalVolume : physicalVolumes) {
Expand Down

0 comments on commit da06979

Please sign in to comment.