Import Geant4 11.3.1 source tree

This commit is contained in:
Gabriele Cosmo
2025-03-24 16:45:22 +01:00
parent 32390e802b
commit df176550b3
388 changed files with 29491 additions and 29435 deletions
+11
View File
@@ -6,6 +6,17 @@ It must **not** be used as a substitute for writing good git commit messages!
-------------------------------------------------------------------------------
## 2025-03-21 Gabriele Cosmo (global-V11-02-27)
- Updated tag IDs for geant4-11-03-patch-01.
## 2025-03-20 Gabriele Cosmo
- In G4ThreadLocalSingleton, removed unprotected left-over debug inclusion
of G4BackTrace header. Addressing problem report #2649.
## 2025-01-31 Ben Morgan
- Correct logic error in G4PhysicsTable when reading data in binary
mode on Windows platforms, identified by migrated unit tests.
## 2024-11-22 Gabriele Cosmo (global-V11-02-26)
- Updated tag IDs for geant4-11-03-ref-00.
@@ -97,7 +97,6 @@
#include "G4AutoLock.hh"
#include "G4Cache.hh"
#include "G4Backtrace.hh"
#include "G4Threading.hh"
#include <list>
@@ -180,21 +179,7 @@ G4ThreadLocalSingleton<T>::G4ThreadLocalSingleton()
{
G4MUTEXINIT(listm);
G4Cache<T*>::Put(nullptr);
// Uncomment below to find the origin of where instantiation happened
/*
auto bt = G4Backtrace::GetDemangled<4, 1>(
[](const char* cstr) { return std::string{ cstr }; });
std::cout << "Backtrace to G4ThreadLocalSingleton<"
<< G4Demangle<T>().c_str() << ">:\n";
for(auto& itr : bt)
{
if(!itr.empty())
std::cout << "\t" << itr << "\n";
}
*/
G4ThreadLocalSingleton<void>::Insert([&]() {
// printf("Deleting G4ThreadLocalSingletons for type %s ...\n",
// G4Demangle<T>().c_str());
this->Clear();
});
}
@@ -43,7 +43,7 @@
/// |--> patch number (single digit)
///
#ifndef G4VERSION_NUMBER
#define G4VERSION_NUMBER 1130
#define G4VERSION_NUMBER 1131
#endif
/// @def G4VERSION_REFERENCE_TAG
@@ -55,11 +55,11 @@
/// (taking December as 0, the start of new development of the next major/minor release).
///
#ifndef G4VERSION_REFERENCE_TAG
#define G4VERSION_REFERENCE_TAG 00
#define G4VERSION_REFERENCE_TAG -1
#endif
#ifndef G4VERSION_TAG
#define G4VERSION_TAG "$Name: geant4-11-03 $"
#define G4VERSION_TAG "$Name: geant4-11-03-patch-01 $"
#endif
// as variables
@@ -68,10 +68,10 @@
#include "G4Types.hh"
#ifdef G4MULTITHREADED
static const G4String G4Version = "$Name: geant4-11-03 [MT]$";
static const G4String G4Version = "$Name: geant4-11-03-patch-01 [MT]$";
#else
static const G4String G4Version = "$Name: geant4-11-03 $";
static const G4String G4Version = "$Name: geant4-11-03-patch-01 $";
#endif
static const G4String G4Date = "(6-December-2024)";
static const G4String G4Date = "(21-March-2025)";
#endif
@@ -142,7 +142,7 @@ G4bool G4PhysicsTable::RetrievePhysicsTable(const G4String& fileName,
{
std::ifstream fIn;
// open input file
if(ascii)
if(!ascii)
{
fIn.open(fileName, std::ios::in | std::ios::binary);
}