Commit 3dfb0b02 authored by Valentina Fioretti's avatar Valentina Fioretti
Browse files

cleaning EXACRAD

parent afd740dc
Loading
Loading
Loading
Loading
+15 −16
Original line number Diff line number Diff line
 /***************************************************************************
                          THELGlobalMemory.cc  -  description
                             -------------------
    begin                : 2007
    copyright            : (C) 2007 by  Andrea Bulgarelli
    email                : bulgarelli@iasfbo.inaf.it
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software for non commercial purpose              *
 *   and for public research institutes; you can redistribute it and/or    *
 *   modify it under the terms of the GNU General Public License.          *
 *   For commercial purpose see appropriate license terms                  *
 *                                                                         *
***************************************************************************/
// Copyright 2025 Valentina Fioretti
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// **********************************************************************

#include "G4MPImanager.hh"
#include "THELGlobalMemory.hh"
+16 −16
Original line number Diff line number Diff line
/***************************************************************************
                          THELGlobalMemory.hh  -  description
                             -------------------
    begin                : 2010
    copyright            : (C) 2010 by  Andrea Bulgarelli
    email                : bulgarelli@iasfbo.inaf.it
***************************************************************************/
// Copyright 2025 Valentina Fioretti
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// **********************************************************************

/***************************************************************************
 *                                                                         *
 *   This program is free software for non commercial purpose              *
 *   and for public research institutes; you can redistribute it and/or    *
 *   modify it under the terms of the GNU General Public License.          *
 *   For commercial purpose see appropriate license terms                  *
 *                                                                         *
 ***************************************************************************/
#ifndef SXGLOBALMEMORY_H
#define SXGLOBALMEMORY_H

+7 −45
Original line number Diff line number Diff line
/* ==========================================================================
 #
 # Copyright (C) 2010 INAF - OAS Bologna
 # Authors:  Andrea Bulgarelli <andrea.bulgarelli@inaf.it>
 #           Valentina Fioretti <valentina.fioretti@inaf.it>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 # ==========================================================================*/

// ********************************************************************
// * License and Disclaimer                                           *
// *                                                                  *
@@ -42,20 +21,7 @@
// * use  in  resulting  scientific  publications,  and indicate your *
// * acceptance of all terms of the Geant4 Software license.          *
// ********************************************************************
// Copyright 2025 Valentina Fioretti
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// **********************************************************************


#include "G4MPImanager.hh"
#include "G4MPIsession.hh"
@@ -66,7 +32,6 @@

#include "G4UIterminal.hh"
#include "G4UItcsh.hh"
//#include "G4UIQt.hh"
#include "G4VisExecutive.hh"
#include "CEventAction.hh"
#include "CRunAction.hh"
@@ -87,13 +52,11 @@
using namespace std;

int main( int argc, char** argv ) {
    // Choose the Random engine
    //
    //G4cout << argc << G4endl;
    //G4cout << "/n#######################################################" << G4endl;
    //G4cout << "THELSIM" << G4endl;
    //G4cout << "Version: " << VERSION2 << G4endl;
    //G4cout << "#######################################################" << G4endl;


    G4cout << "/n#######################################################" << G4endl;
    G4cout << "                     BoGEMMS-HPC" << G4endl;
    G4cout << "#######################################################" << G4endl;

    G4MPImanager* g4MPI = new G4MPImanager(argc, argv);
    G4MPIsession* session = g4MPI->GetMPIsession();
@@ -113,8 +76,7 @@ int main( int argc, char** argv ) {
        G4int seed = time( NULL )*(rank+1); 
        G4Random::setTheSeed( seed ); 
        
        // Construct the default run manager
        
        // Setting the MT option
        G4bool MTFlag = 0;
        gm.config->readInto(MTFlag, "RUN.MT.ACTIVATE");
        cout << "RUN.MT.ACTIVATE: " << MTFlag << endl;
+221 −3084

File changed.

Preview size limit exceeded, changes collapsed.

+0 −16
Original line number Diff line number Diff line
/***************************************************************************
                          EXACRAD.hh  -  description
                             -------------------
    begin                : 2018
    Authors              : V. Fioretti (INAF/IASF Bologna)

 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software for non commercial purpose              *
 *   and for public research institutes; you can redistribute it and/or    *
 *   modify it under the terms of the GNU General Public License.          *
 *   For commercial purpose see appropriate license terms                  *
 *                                                                         *
 ***************************************************************************/
// Copyright 2025 Valentina Fioretti
//
// Licensed under the Apache License, Version 2.0 (the "License");