Import Geant4 10.5.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2018-06-29 10:58:11 +02:00
parent fe81a77428
commit 6aa23be517
1581 changed files with 124288 additions and 83758 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
$Id: History 104015 2017-05-08 07:28:08Z gcosmo $
$Id: History 110513 2018-05-28 07:37:38Z gcosmo $
-------------------------------------------------------------------
=========================================================
@@ -20,6 +20,9 @@ committal in the CVS repository !
History file for visualization/FukuiRenderer sub-category
---------------------------------------------------------
26th May 2018 John Allison (DAWN-V10-04-00)
- G4DAWNFILESceneHandler.cc: Fix gcc-8 warnings.
7th May 2017 John Allison (DAWN-V10-03-00)
- G4DAWNFILESceneHandler.cc:
o In g4_<N>.prim, expand to 4 digits, e.g., g4_0000.prim, g4_0001.prim,...
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4DAWNFILESceneHandler.cc 104015 2017-05-08 07:28:08Z gcosmo $
// $Id: G4DAWNFILESceneHandler.cc 110513 2018-05-28 07:37:38Z gcosmo $
//
// Satoshi TANAKA
// DAWNFILE scene.
@@ -174,7 +174,8 @@ void G4DAWNFILESceneHandler::SetG4PrimFileName()
std::ostringstream filename; filename
<< fG4PrimDestDir << G4PRIM_FILE_HEADER
<< std::setw(4) << std::setfill('0') << i << ".prim";
strncpy(fG4PrimFileName,filename.str().c_str(),sizeof(fG4PrimFileName));
strncpy(fG4PrimFileName,filename.str().c_str(),sizeof(fG4PrimFileName)-1);
fG4PrimFileName[sizeof(fG4PrimFileName)-1] = '\0';
// check validity of the file name
std::ifstream fin ;