In Geant4.10.2.p02, the failure of G4UnitDefinition::GetValueOf(G4String unit) was raised from a warning to a fatal error (#1843). We were using this method to check that a unit is defined, but this is no longer possible. Please could we have a new G4UnitDefinition::IsDefined(G4String unit) method? Thanks, David
Thanks for reporting the use-case. A new static method "G4bool IsUnitDefined(const G4String&)" has been added in the development version and will be available in the next release.
Thanks a lot, Gabriele!