Import Geant4 11.4.1 source tree

This commit is contained in:
Gabriele Cosmo
2026-03-19 16:51:22 +01:00
parent b4a16de652
commit 41f2dd7996
352 changed files with 26342 additions and 24532 deletions
@@ -230,8 +230,9 @@ G4double G4VSIntegration::SampleValue()
if ((gg > gmax || n >= nmax) && fVerbose > 0) {
++fnWarn;
if (fnWarn < fWarnLimit) {
G4double xg = (gmax > 0.0) ? gg/gmax : 0.0;
G4cout << "### G4VSIntegration::SampleValue() for " << ModelName()
<< " in area=" << idx << " n=" << n << " gg/gmax=" << gg/gmax
<< " in area=" << idx << " n=" << n << " gg/gmax=" << xg
<< " prob=" << gg << " gmax=" << gmax << G4endl;
G4cout << " E=" << e << " Emin=" << fEmin << " Emax=" << fEmax
<< " E1=" << fE1 << " E2=" << fE2 << " E3=" << E3
+14
View File
@@ -6,6 +6,20 @@ It must **not** be used as a substitute for writing good git commit messages!
-------------------------------------------------------------------------------
## 2026-03-06 Ben Morgan (global-V11-03-32)
- Always initialize G4CacheReference for a G4Cache instance on construction of latter.
- Prevents fatal G4Exception when only low ID G4Cache elements are accessed,
see Issue #281 for details.
## 2026-02-12 Gabriele Cosmo
- Protect debug warning printout from G4Cache destructor within 'g4cdebug' flag
as it was originally intended. Addressing long-standing false-positive issue
happening in MT mode (G4MTRunManager only) on macOS/clang.
Also problem report #2696.
## 2026-01-03 Vladimir Ivantchenko
- G4VSIntegration - fixed Coverity warning.
## 2025-12-05 Gabriele Cosmo (global-V11-03-31)
- Updated tag IDs for geant4-11-04-ref-00.
+8 -7
View File
@@ -211,6 +211,7 @@ G4Cache<V>::G4Cache()
{
G4AutoLock l(G4TypeMutex<G4Cache<V>>());
id = instancesctr++;
theCache.Initialize(id);
#ifdef g4cdebug
std::cout << "G4Cache id: " << id << std::endl;
#endif
@@ -290,15 +291,15 @@ G4Cache<V>::~G4Cache()
} catch(std::system_error& e)
{
// the error that comes from locking an unavailable mutex
#ifdef G4VERBOSE
G4cout << "Non-critical error: mutex lock failure in ~G4Cache<"
<< typeid(V).name() << ">. " << G4endl
#ifdef g4cdebug
std::cout << "Non-critical error: mutex lock failure in ~G4Cache<"
<< typeid(V).name() << ">. " << std::endl
<< "If the RunManagerKernel has been deleted, it failed to "
<< "delete an allocated resource" << G4endl
<< "delete an allocated resource" << std::endl
<< "and this destructor is being called after the statics "
<< "were destroyed." << G4endl;
G4cout << "Exception: [code: " << e.code() << "] caught: " << e.what()
<< G4endl;
<< "were destroyed." << std::endl;
std::cout << "Exception: [code: " << e.code() << "] caught: " << e.what()
<< std::endl;
#endif
}
++dstrctr;
@@ -43,7 +43,7 @@
/// |--> patch number (single digit)
///
#ifndef G4VERSION_NUMBER
#define G4VERSION_NUMBER 1140
#define G4VERSION_NUMBER 1141
#endif
/// @def G4VERSION_REFERENCE_TAG
@@ -59,7 +59,7 @@
#endif
#ifndef G4VERSION_TAG
#define G4VERSION_TAG "$Name: geant4-11-04 $"
#define G4VERSION_TAG "$Name: geant4-11-04-patch-01 $"
#endif
// as variables
@@ -68,10 +68,10 @@
#include "G4Types.hh"
#ifdef G4MULTITHREADED
static const G4String G4Version = "$Name: geant4-11-04 [MT]$";
static const G4String G4Version = "$Name: geant4-11-04-patch-01 [MT]$";
#else
static const G4String G4Version = "$Name: geant4-11-04 $";
static const G4String G4Version = "$Name: geant4-11-04-patch-01 $";
#endif
static const G4String G4Date = "(5-December-2025)";
static const G4String G4Date = "(13-March-2026)";
#endif