From 696b6e20293eccfc31d16fbb04c53e8d329b7772 Mon Sep 17 00:00:00 2001 From: Krishan Mistry Date: Mon, 17 Jun 2024 13:07:11 -0500 Subject: [PATCH] Revert argon definition --- source/materials/MaterialsList.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/source/materials/MaterialsList.cc b/source/materials/MaterialsList.cc index 448e46cb3..371f04678 100644 --- a/source/materials/MaterialsList.cc +++ b/source/materials/MaterialsList.cc @@ -187,18 +187,13 @@ namespace materials { G4Material* mat = G4Material::GetMaterial(name, false); if (mat == 0) { + G4NistManager* nist = G4NistManager::Instance(); mat = new G4Material(name, ArgonDensity(pressure), 1, kStateGas, temperature, pressure); - G4Element* Ar = new G4Element(name, "Ar", 1); + G4Element* Ar = nist->FindOrBuildElement("Ar"); - G4int massNumber = 40; - G4double abundance = 100*perCent; - G4String isotopeName = "Ar" + std::to_string(massNumber); - G4Isotope* isotope = new G4Isotope(isotopeName, 18, massNumber, 39.962383123*g/mole); - Ar->AddIsotope(isotope, abundance); - mat->AddElement(Ar,1); }