Changeset 1337 for trunk/examples/extended/parallel/MPI/exMPI01
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/extended/parallel/MPI/exMPI01
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/parallel/MPI/exMPI01/GNUmakefile
r1230 r1337 1 # $Id: GNUmakefile,v 1. 1 2007/11/16 14:16:46 kmuraExp $2 # $Name: geant4-09-0 3-cand-01 $1 # $Id: GNUmakefile,v 1.2 2010/01/11 16:53:51 gcosmo Exp $ 2 # $Name: geant4-09-04-beta-01 $ 3 3 # =========================================================== 4 4 # Makefile for building G4 MPI aplication 5 5 # =========================================================== 6 name := exMPI01# 6 7 name := exMPI01 7 8 G4TARGET := $(name) 8 9 G4EXLIB := true 9 10 10 G4WORKDIR := . 11 ifndef G4INSTALL 12 G4INSTALL = ../../../../.. 13 endif 11 14 12 15 .PHONY: all -
trunk/examples/extended/parallel/MPI/exMPI01/History
r807 r1337 1 $Id: History,v 1. 1 2007/11/16 14:16:46 kmuraExp $1 $Id: History,v 1.3 2010/06/06 05:07:23 perl Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 9 9 --------------- 10 10 11 4 June 2010 J.Perl 12 - Updated vis usage. 13 14 18 May 2010 K.Murakami 15 - use G4UIcsh instead of G4UItcsh because OpenMPI is now default. 16 - use G4eMultipleScattering instead of obsolete G4MultipleScattering. 17 11 18 16 Nov. 2007 K.Murakami 12 19 - commited to G4 CVS. 13 20 14 -
trunk/examples/extended/parallel/MPI/exMPI01/exMPI01.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: exMPI01.cc,v 1. 1 2007/11/16 14:16:46kmura Exp $27 // $Name: geant4-09-0 3-cand-01 $26 // $Id: exMPI01.cc,v 1.2 2010/05/18 06:07:43 kmura Exp $ 27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== … … 43 43 #include "G4MPImanager.hh" 44 44 #include "G4MPIsession.hh" 45 #include "G4UItcsh.hh"46 45 47 46 #ifdef G4VIS_USE … … 70 69 prompt+= "G4MPI"; 71 70 prompt+= "[40;31m(%s)[40;36m[%/][00;30m:"; 72 73 G4UItcsh* tcsh= new G4UItcsh(prompt); 74 tcsh-> SetLsColor(BLUE,RED); 75 session-> SetShell(tcsh); 71 session-> SetPrompt(prompt); 76 72 77 73 // -------------------------------------------------------------------- -
trunk/examples/extended/parallel/MPI/exMPI01/include/DetectorConstruction.hh
r807 r1337 25 25 // 26 26 // $Id: DetectorConstruction.hh,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/include/Materials.hh
r807 r1337 25 25 // 26 26 // $Id: Materials.hh,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/include/Particles.hh
r807 r1337 25 25 // 26 26 // $Id: Particles.hh,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/include/PhysicsList.hh
r807 r1337 25 25 // 26 26 // $Id: PhysicsList.hh,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/include/PhysicsListEMstd.hh
r807 r1337 25 25 // 26 26 // $Id: PhysicsListEMstd.hh,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/include/PrimaryGeneratorAction.hh
r807 r1337 25 25 // 26 26 // $Id: PrimaryGeneratorAction.hh,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/src/DetectorConstruction.cc
r807 r1337 25 25 // 26 26 // $Id: DetectorConstruction.cc,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/src/Materials.cc
r807 r1337 25 25 // 26 26 // $Id: Materials.cc,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/src/Particles.cc
r807 r1337 25 25 // 26 26 // $Id: Particles.cc,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/src/PhysicsList.cc
r807 r1337 25 25 // 26 26 // $Id: PhysicsList.cc,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/src/PhysicsListEMstd.cc
r807 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: PhysicsListEMstd.cc,v 1. 1 2007/11/16 14:16:46kmura Exp $27 // $Name: $26 // $Id: PhysicsListEMstd.cc,v 1.2 2010/05/13 03:12:00 kmura Exp $ 27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== … … 48 48 #include "G4GammaConversion.hh" 49 49 #include "G4PhotoElectricEffect.hh" 50 #include "G4 MultipleScattering.hh"50 #include "G4eMultipleScattering.hh" 51 51 #include "G4eIonisation.hh" 52 52 #include "G4eBremsstrahlung.hh" … … 87 87 G4ProcessManager* pm; 88 88 89 // ---------------------------------------------------------- 89 // ---------------------------------------------------------- 90 90 // gamma physics 91 91 // ---------------------------------------------------------- … … 98 98 // electron physics 99 99 // ---------------------------------------------------------- 100 G4 MultipleScattering* msc= new G4MultipleScattering;100 G4eMultipleScattering* msc= new G4eMultipleScattering; 101 101 G4eIonisation* eion= new G4eIonisation; 102 102 G4eBremsstrahlung* ebrems= new G4eBremsstrahlung; … … 110 110 // positron physics 111 111 // ---------------------------------------------------------- 112 msc= new G4 MultipleScattering;112 msc= new G4eMultipleScattering; 113 113 eion= new G4eIonisation; 114 114 ebrems= new G4eBremsstrahlung; … … 123 123 } 124 124 125 -
trunk/examples/extended/parallel/MPI/exMPI01/src/PrimaryGeneratorAction.cc
r807 r1337 25 25 // 26 26 // $Id: PrimaryGeneratorAction.cc,v 1.1 2007/11/16 14:16:46 kmura Exp $ 27 // $Name: $27 // $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // ==================================================================== -
trunk/examples/extended/parallel/MPI/exMPI01/v.mac
r807 r1337 1 /vis/open OGLIX 2 3 /vis/scene/create 4 /vis/scene/add/volume 5 6 /vis/sceneHandler/attach 7 1 # Use this open statement to create an OpenGL view: 2 /vis/open OGL 600x600-0+0 3 # 4 # Use this open statement to create a .prim file suitable for 5 # viewing in DAWN: 6 #/vis/open DAWNFILE 7 # 8 # Use this open statement to create a .heprep file suitable for 9 # viewing in HepRApp: 10 #/vis/open HepRepFile 11 # 12 # Use this open statement to create a .wrl file suitable for 13 # viewing in a VRML viewer: 14 #/vis/open VRML2FILE 15 # 16 # Disable auto refresh and quieten vis messages whilst scene and 17 # trajectories are established: 18 /vis/viewer/set/autoRefresh false 19 /vis/verbose errors 20 # 21 # Draw geometry: 22 /vis/drawVolume 23 # 24 # Specify view angle: 8 25 /vis/viewer/set/viewpointThetaPhi 90. 270. 9 10 /tracking/storeTrajectory 1 11 /vis/scene/add/trajectories 26 # 27 # Specify zoom value: 28 #/vis/viewer/zoom 2. 29 # 30 # Specify style (surface or wireframe): 31 #/vis/viewer/set/style wireframe 32 # 33 # Draw coordinate axes: 34 #/vis/scene/add/axes 0 0 0 1 m 35 # 36 # Draw smooth trajectories at end of event, showing trajectory points 37 # as markers 2 pixels wide: 38 /vis/scene/add/trajectories smooth 39 /vis/modeling/trajectories/create/drawByCharge 40 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 41 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 42 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) 43 # 44 # Draw hits at end of event: 45 #/vis/scene/add/hits 46 # 47 # To draw only gammas: 48 #/vis/filtering/trajectories/create/particleFilter 49 #/vis/filtering/trajectories/particleFilter-0/add gamma 50 # 51 # To invert the above, drawing all particles except gammas, 52 # keep the above two lines but also add: 53 #/vis/filtering/trajectories/particleFilter-0/invert true 54 # 55 # Many other options are available with /vis/modeling and /vis/filtering. 56 # For example, to select colour by particle ID: 57 #/vis/modeling/trajectories/create/drawByParticleID 58 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue 59 # 60 # To superimpose all of the events from a given run: 12 61 /vis/scene/endOfEventAction accumulate 13 #/vis/scene/endOfEventAction refresh 14 15 62 # 63 # Re-establish auto refreshing and verbosity: 64 /vis/viewer/set/autoRefresh true 65 /vis/verbose warnings 66 # 67 # For file-based drivers, use this to create an empty detector view: 68 #/vis/viewer/flush
Note: See TracChangeset
for help on using the changeset viewer.