Import Geant4 11.1.0.beta source tree
This commit is contained in:
@@ -37,7 +37,9 @@ extern G4PART_DLL G4Allocator<G4DynamicParticle>*& pDynamicParticleAllocator();
|
||||
inline void * G4DynamicParticle::operator new(size_t)
|
||||
{
|
||||
if (pDynamicParticleAllocator() == nullptr)
|
||||
{
|
||||
pDynamicParticleAllocator() = new G4Allocator<G4DynamicParticle>;
|
||||
}
|
||||
return pDynamicParticleAllocator()->MallocSingle();
|
||||
}
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ void G4NuclideTable::GenerateNuclide()
|
||||
if ( threshold_of_half_life < minimum_threshold_of_half_life )
|
||||
{
|
||||
// Need to update full list
|
||||
char* path = std::getenv("G4ENSDFSTATEDATA");
|
||||
const char* path = G4FindDataDir("G4ENSDFSTATEDATA");
|
||||
|
||||
if ( path == nullptr )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user