TreeMig Code
Loading...
Searching...
No Matches
StartTreeMig.f90
Go to the documentation of this file.
1
!==============================================================================
24
!==============================================================================
25
PROGRAM
starttreemig
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
67
end PROGRAM
starttreemig
starttreemig
program starttreemig
StartTreeMig.
Definition
StartTreeMig.f90:25
treemig
subroutine treemig(doparallel)
TreeMig (TREE MIGration simulator)
Definition
TreeMig.f90:46
tmmpitypes
TMMPITypes
Definition
MPI_Types.f90:25
tmmpitypes::numprocs
integer numprocs
Definition
MPI_Types.f90:28
tmmpitypes::master
integer master
Definition
MPI_Types.f90:28
sourceTMFFT
StartTreeMig.f90
Generated on Wed Mar 27 2024 13:24:05 for TreeMig Code by
1.10.0