Changeset 2298 for palm/trunk/SOURCE/init_coupling.f90
- Timestamp:
- Jun 29, 2017 9:28:18 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_coupling.f90
r2101 r2298 25 25 ! ------------------ 26 26 ! $Id$ 27 ! MPI2 coupling removed 28 ! 29 ! 2101 2017-01-05 16:42:31Z suehring 27 30 ! 28 31 ! 2000 2016-08-20 18:09:15Z knoop … … 84 87 ! 85 88 !-- Get information about the coupling mode from standard input (PE0 only) and 86 !-- distribute it to the other PEs. If __mpi2 was defined, suggest a 87 !-- coupling via MPI-2. Otherwise initate a coupling using MPI-1 only. 88 !-- In this case, distribute PEs to 2 new communicators. 89 !-- distribute it to the other PEs. Distribute PEs to 2 new communicators. 89 90 !-- ATTENTION: numprocs will be reset according to the new communicators 90 91 #if defined ( __parallel ) 91 92 92 !myid_absolut = myid93 93 IF ( myid == 0 ) THEN 94 94 READ (*,*,ERR=10,END=10) coupling_mode, bc_data(1), bc_data(2) 95 95 10 CONTINUE 96 #if defined( __mpi2 )97 IF ( TRIM( coupling_mode ) == 'atmosphere_to_ocean' ) THEN98 i = 199 ELSEIF ( TRIM( coupling_mode ) == 'ocean_to_atmosphere' ) THEN100 i = 2101 ELSE102 i = 0103 ENDIF104 #else105 96 IF ( TRIM( coupling_mode ) == 'coupled_run' ) THEN 106 97 i = 1 … … 108 99 i = 0 109 100 ENDIF 110 #endif111 101 bc_data(0) = i 112 102 … … 121 111 i = bc_data(0) 122 112 123 #if defined ( __mpi2 )124 IF ( i == 0 ) THEN125 coupling_mode = 'uncoupled'126 ELSEIF ( i == 1 ) THEN127 coupling_mode = 'atmosphere_to_ocean'128 ELSEIF ( i == 2 ) THEN129 coupling_mode = 'ocean_to_atmosphere'130 ENDIF131 target_id = myid132 #else133 113 IF ( i == 0 ) THEN 134 114 coupling_mode = 'uncoupled' … … 165 145 ENDIF 166 146 #endif 167 #endif168 147 169 148 !
Note: See TracChangeset
for help on using the changeset viewer.