Changeset 2365 for palm/trunk/SOURCE/init_coupling.f90
- Timestamp:
- Aug 21, 2017 2:59:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_coupling.f90
r2298 r2365 25 25 ! ------------------ 26 26 ! $Id$ 27 ! Vertical nesting implemented (SadiqHuq) 28 ! 29 ! 2298 2017-06-29 09:28:18Z raasch 27 30 ! MPI2 coupling removed 28 31 ! … … 67 70 USE pegrid 68 71 72 USE vertical_nesting_mod 73 69 74 IMPLICIT NONE 70 75 … … 96 101 IF ( TRIM( coupling_mode ) == 'coupled_run' ) THEN 97 102 i = 1 103 ELSEIF ( TRIM( coupling_mode ) == 'vnested_twi' ) THEN 104 i = 9 98 105 ELSE 99 106 i = 0 … … 111 118 i = bc_data(0) 112 119 113 IF ( i == 0 ) THEN120 IF ( i == 0 ) THEN 114 121 coupling_mode = 'uncoupled' 115 122 ! … … 121 128 CLOSE ( 90 ) 122 129 ENDIF 130 ELSEIF ( i == 9 ) THEN 131 132 ! 133 !-- Set a flag to identify runs with vertical nesting 134 vnested = .TRUE. 135 136 comm_inter = MPI_COMM_WORLD 137 138 ! 139 !-- Split the total available PE's into two groups 140 !-- numprocs for Coarse and Fine Grid are specified via mrun argument -N 141 IF ( myid < bc_data(1) ) THEN 142 inter_color = 0 143 numprocs = bc_data(1) 144 coupling_mode = 'vnested_crse' 145 ELSE 146 inter_color = 1 147 numprocs = bc_data(2) 148 coupling_mode = 'vnested_fine' 149 ENDIF 150 151 CALL MPI_COMM_SPLIT( MPI_COMM_WORLD, inter_color, 0, comm_palm, ierr ) 152 comm2d = comm_palm 153 154 OPEN( 90, FILE='VNESTING_PORT_OPENED', FORM='FORMATTED' ) 155 WRITE ( 90, '(''TRUE'')' ) 156 CLOSE ( 90 ) 157 123 158 ELSE 124 159 comm_inter = MPI_COMM_WORLD … … 154 189 ENDIF 155 190 191 IF ( TRIM( coupling_mode ) == 'vnested_fine' ) THEN 192 ! 193 !-- Set file extension for vertical nesting 194 coupling_char = '_N' 195 ENDIF 196 156 197 END SUBROUTINE init_coupling
Note: See TracChangeset
for help on using the changeset viewer.