1 |
|
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
!======================================================================= |
!======================================================================= |
5 |
subroutine MITCPLR_init1( myTypeStr, couplerFlag ) |
subroutine MITCPLR_init1( myTypeStr, couplerFlag ) |
6 |
implicit none |
implicit none |
41 |
if (DEBUG) write(0,*) 'MITCPLR_init1: ',myid,' ',myTypeStr, |
if (DEBUG) write(0,*) 'MITCPLR_init1: ',myid,' ',myTypeStr, |
42 |
& ' Rank/Size = ',myid,' /',numprocs |
& ' Rank/Size = ',myid,' /',numprocs |
43 |
|
|
44 |
! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
45 |
|
|
46 |
! Registration: collect/bcast lists of who is who |
! Registration: collect/bcast lists of who is who |
47 |
|
|
63 |
lenbuf=8+MAXLEN_COMP_NAME |
lenbuf=8+MAXLEN_COMP_NAME |
64 |
call MPI_Bcast( |
call MPI_Bcast( |
65 |
& ibuf, lenbuf, MPI_INTEGER, |
& ibuf, lenbuf, MPI_INTEGER, |
66 |
& n, |
& n, |
67 |
& MPI_COMM_WORLD, ierr ) |
& MPI_COMM_WORLD, ierr ) |
68 |
if (DEBUG) write(0,*) 'MITCPLR_init1: ',myid,' ',myTypeStr, |
if (DEBUG) write(0,*) 'MITCPLR_init1: ',myid,' ',myTypeStr, |
69 |
& ' MPI_Bcast from ',ibuf(1),ibuf(2),' ierr=',ierr |
& ' MPI_Bcast from ',ibuf(1),ibuf(2),' ierr=',ierr |
115 |
& ( rank_compcplr_procs(j,n),j=1,num_compcplr_procs(n) ) |
& ( rank_compcplr_procs(j,n),j=1,num_compcplr_procs(n) ) |
116 |
enddo |
enddo |
117 |
|
|
118 |
! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
119 |
|
|
120 |
! Create new groups and communicators |
! Create new groups and communicators |
121 |
|
|
171 |
|
|
172 |
enddo |
enddo |
173 |
|
|
174 |
! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
175 |
|
|
176 |
if ( couplerFlag ) then |
if ( couplerFlag ) then |
177 |
my_component_ind=-1 |
my_component_ind=-1 |
226 |
& '========================================' |
& '========================================' |
227 |
write(LogUnit,*) 'This is "',myTypeStr,'"' |
write(LogUnit,*) 'This is "',myTypeStr,'"' |
228 |
write(LogUnit,*) 'myid in MPI_COMM_World = ',myid |
write(LogUnit,*) 'myid in MPI_COMM_World = ',myid |
229 |
if (.not.couplerFlag) |
if (.not.couplerFlag) |
230 |
& write(LogUnit,*) 'myid in MPI_COMM_Global = ',j |
& write(LogUnit,*) 'myid in MPI_COMM_Global = ',j |
231 |
|
|
232 |
! ------------------------------------------------------------------ |
! ------------------------------------------------------------------ |