Import Geant4 10.5.0 source tree
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
# $Id: CMakeLists.txt 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# $Id: GNUmakefile 99176 2016-09-07 09:46:36Z gcosmo $
|
||||
|
||||
name := G4GMocren
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
$Id: History 110513 2018-05-28 07:37:38Z gcosmo $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -20,6 +19,9 @@ committal in the CVS repository !
|
||||
History file for visualization/gMocren sub-category
|
||||
---------------------------------------------------
|
||||
|
||||
13 July 2018 Gabriele Cosmo (gMocren-V10-04-01)
|
||||
- Fixed remaining gcc-8 compilation warnings in G4GMocrenFileViewer.
|
||||
|
||||
26 May 2018 John Allison (gMocren-V10-04-00)
|
||||
- Fix gcc-8 warnings.
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GMocrenFile.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Created: Mar. 31, 2009 Akinori Kimura
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GMocrenFileCTtoDensityMap.hh 70733 2013-06-05 10:05:57Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Created: Oct. 12, 2009 Akinori Kimura
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GMocrenFileSceneHandler.hh 99152 2016-09-07 08:04:30Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Created: Mar. 31, 2009 Akinori Kimura
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GMocrenFileViewer.hh 68043 2013-03-13 14:27:49Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Created: Mar. 31, 2009 Akinori Kimura : release for the gMocrenFile driver
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4GMocrenMessenger.hh 68043 2013-03-13 14:27:49Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Created: Mar. 31, 2009 Akinori Kimura
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GMocrenTouchable.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Created: Mar. 31, 2009 Akinori Kimura
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
# $Id: sources.cmake 99176 2016-09-07 09:46:36Z gcosmo $
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GMocrenFile.cc 81943 2014-06-06 15:56:00Z gcosmo $
|
||||
//
|
||||
//
|
||||
// GMocrenFile factory.
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GMocrenFileSceneHandler.cc 110513 2018-05-28 07:37:38Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Created: Mar. 31, 2009 Akinori Kimura
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GMocrenFileViewer.cc 110513 2018-05-28 07:37:38Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Created: Mar. 31, 2009 Akinori Kimura
|
||||
@@ -55,7 +54,7 @@
|
||||
//----- constants
|
||||
|
||||
//-- for a debugging
|
||||
const bool GFDEBUG = false;
|
||||
const G4bool GFDEBUG = false;
|
||||
|
||||
//----- G4GMocrenFileViewer, constructor
|
||||
G4GMocrenFileViewer::G4GMocrenFileViewer (G4GMocrenFileSceneHandler& sceneHandler,
|
||||
@@ -68,7 +67,7 @@ G4GMocrenFileViewer::G4GMocrenFileViewer (G4GMocrenFileSceneHandler& sceneHandle
|
||||
std::strncpy( kG4GddViewer, "gMocren", 8);
|
||||
if( getenv( "G4GMocrenFile_VIEWER" ) != NULL ) {
|
||||
char * env = getenv( "G4GMocrenFile_VIEWER" );
|
||||
int len = std::strlen(env);
|
||||
G4int len = std::strlen(env);
|
||||
if(len >= 32) {
|
||||
G4Exception("G4GMocrenFileViewer::G4GMocrenFileViewer(*)",
|
||||
"gMocren1000", FatalException,
|
||||
@@ -89,17 +88,19 @@ G4GMocrenFileViewer::G4GMocrenFileViewer (G4GMocrenFileSceneHandler& sceneHandle
|
||||
std::strncpy( kG4GddViewerInvocation, kG4GddViewer,
|
||||
sizeof(kG4GddViewerInvocation) - 1);
|
||||
kG4GddViewerInvocation[sizeof(kG4GddViewerInvocation) - 1] = '\0';
|
||||
std::strncat( kG4GddViewerInvocation, " ",
|
||||
sizeof(kG4GddViewerInvocation) - std::strlen(kG4GddViewerInvocation) - 1);
|
||||
G4int n = sizeof(kG4GddViewerInvocation)
|
||||
- std::strlen(kG4GddViewerInvocation) - 1;
|
||||
std::strncat( kG4GddViewerInvocation, " ", n);
|
||||
const char * gddfname = kSceneHandler.GetGddFileName();
|
||||
int len = std::strlen(gddfname);
|
||||
G4int len = std::strlen(gddfname);
|
||||
if(len >= 64) {
|
||||
G4Exception("G4GMocrenFileViewer::G4GMocrenFileViewer(*)",
|
||||
"gMocren1001", FatalException,
|
||||
"Invalid length of the GDD file name");
|
||||
}
|
||||
std::strncat( kG4GddViewerInvocation, gddfname,
|
||||
sizeof(kG4GddViewerInvocation) - std::strlen(kG4GddViewerInvocation) - 1);
|
||||
n = sizeof(kG4GddViewerInvocation)
|
||||
- std::strlen(kG4GddViewerInvocation) - 1;
|
||||
std::strncat( kG4GddViewerInvocation, gddfname, n);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -185,17 +186,19 @@ void G4GMocrenFileViewer::ShowView( void )
|
||||
std::strncpy( kG4GddViewerInvocation, kG4GddViewer,
|
||||
sizeof(kG4GddViewerInvocation) - 1);
|
||||
kG4GddViewerInvocation[sizeof(kG4GddViewerInvocation) - 1] = '\0';
|
||||
std::strncat( kG4GddViewerInvocation, " ",
|
||||
sizeof(kG4GddViewerInvocation) - std::strlen(kG4GddViewerInvocation) - 1);
|
||||
G4int n = sizeof(kG4GddViewerInvocation)
|
||||
- std::strlen(kG4GddViewerInvocation) - 1;
|
||||
std::strncat( kG4GddViewerInvocation, " ", n);
|
||||
const char * gddfname = kSceneHandler.GetGddFileName();
|
||||
int len = std::strlen(gddfname);
|
||||
G4int len = std::strlen(gddfname);
|
||||
if(len >= 64) {
|
||||
G4Exception("G4GMocrenFileViewer::ShowView()",
|
||||
"gMocren1002", FatalException,
|
||||
"Invalid length of the GDD file name");
|
||||
}
|
||||
std::strncat( kG4GddViewerInvocation, gddfname,
|
||||
sizeof(kG4GddViewerInvocation) - std::strlen(kG4GddViewerInvocation) - 1);
|
||||
n = sizeof(kG4GddViewerInvocation)
|
||||
- std::strlen(kG4GddViewerInvocation) - 1;
|
||||
std::strncat( kG4GddViewerInvocation, gddfname, n);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GMocrenIO.cc 110513 2018-05-28 07:37:38Z gcosmo $
|
||||
//
|
||||
//
|
||||
// File I/O manager class for writing or reading calcuated dose
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4GMocrenMessenger.cc 87126 2014-11-25 08:58:14Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Created: Mar. 31, 2009 Akinori Kimura
|
||||
|
||||
Reference in New Issue
Block a user