Problem 2133

Summary: Pressure or temperature dose not change in ConstructNewIdealGasMaterial
Product: Geant4 Reporter: Shoichiro Nishimura <nishimu>
Component: materialsAssignee: Vladimir.Ivantchenko
Status: RESOLVED FIXED    
Severity: major    
Priority: P4    
Version: 10.5   
Hardware: All   
OS: All   

Description Shoichiro Nishimura 2019-02-13 12:43:53 CET
When G4Material is constructed by G4NistMaterialBuilder::ConstructNewIdealGasMaterial and either pressure or temperature is changed from STP, both pressure and temperature are set to STP.
This may be because faulty coding at file G4NistMaterialBuilder.cc, line 401,
 if(temp != STP_Temperature && pres != STP_Pressure)
I think it should be
 if(temp != STP_Temperature || pres != STP_Pressure)
Comment 1 Vladimir.Ivantchenko 2019-02-17 11:18:59 CET
Dear Shoichiro,

thank you very much for this post. You really identify a bug in material constructor. The fix is already integrated into Geant4 development version and will be available with the next public release/patch to Geant4.

best regards,
Vladimir