TreeMig Code
Loading...
Searching...
No Matches
StartTreeMig.f90
Go to the documentation of this file.
1!==============================================================================
24!==============================================================================
26 USE tmmpitypes, only: numprocs, master
27 IMPLICIT NONE
28 INTEGER :: iam
29 LOGICAL :: doparallel
30
32 ! according to f90 compiler options -DPARALLEL, -DWITHMPI. Done with the compiler directives #...
33
34 numprocs = 0
35 doparallel = .false.
36
37 !#ifdef WITHMPI ! from compiler option flag DWITHMPI
38 ! print *, 'compiled with mpi '
39 !#ifdef PARALLEL ! from compiler option flag DPARALLEL
40 ! doParallel=.true.
41 ! print *, 'compiled for parallel execution'
42 !#endif
43 ! print *, 'parallel setup?', doParallel
44 !#endif
45
46 master = 0
47 iam = master
48
49 !if (doParallel) then
50 !#ifdef WITHMPI
51 !print *, 'withmpi', Iam
52 !CALL DoParallelComputing(master, Iam, doParallel) ! Comment out if run without MPI
53 !#endif
54 ! else ! if normal, i.e. not parallel
55 !#ifdef WITHMPI
56 !call InitializeMPIStuff (Iam) ! Comment out if run without MPI
57 !#endif
58
59 if (iam == master) CALL treemig(doparallel)
60
61 !#ifdef WITHMPI
62 !CALL PrintPerformanceSequentialRun ! Comment out if run without MPI
63 !#endif
64 ! END IF ! (doParallel)
65 ! PRINT *, 'Ready !'
66
67end PROGRAM starttreemig
program starttreemig
StartTreeMig.
subroutine treemig(doparallel)
TreeMig (TREE MIGration simulator)
Definition TreeMig.f90:46
TMMPITypes
Definition MPI_Types.f90:25
integer numprocs
Definition MPI_Types.f90:28
integer master
Definition MPI_Types.f90:28