Changeset 1762 for palm/trunk/SOURCE/palm.f90
- Timestamp:
- Feb 25, 2016 12:31:13 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/palm.f90
r1748 r1762 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! Introduction of nested domain feature 22 22 ! 23 23 ! Former revisions: … … 113 113 ONLY: coupling_char, coupling_mode, do2d_at_begin, do3d_at_begin, & 114 114 io_blocks, io_group, large_scale_forcing, message_string, & 115 n udging, simulated_time, simulated_time_chr,&115 nest_domain, nudging, simulated_time, simulated_time_chr, & 116 116 user_interface_current_revision, & 117 117 user_interface_required_revision, version, wall_heatflux, & … … 144 144 145 145 USE pegrid 146 147 #if defined( PMC_ACTIVE ) 148 USE pmc_interface, & 149 ONLY: cpl_id, pmci_init, pmci_modelconfiguration 150 #endif 146 151 147 152 USE statistics, & … … 176 181 !-- it will be defined in init_pegrid but is used before in cpu_log. 177 182 CALL MPI_INIT( ierr ) 183 184 #if defined( PMC_ACTIVE ) 185 ! 186 !-- Initialize the coupling for nested-domain runs 187 CALL pmci_init( comm_palm ) 188 comm2d = comm_palm 189 190 IF ( cpl_id >= 2 ) THEN 191 nest_domain = .TRUE. 192 WRITE( coupling_char, '(A1,I1.1)') '_', cpl_id 193 ENDIF 194 195 CALL MPI_COMM_SIZE( comm_palm, numprocs, ierr ) 196 CALL MPI_COMM_RANK( comm_palm, myid, ierr ) 197 #else 178 198 CALL MPI_COMM_SIZE( MPI_COMM_WORLD, numprocs, ierr ) 179 199 CALL MPI_COMM_RANK( MPI_COMM_WORLD, myid, ierr ) 180 200 comm_palm = MPI_COMM_WORLD 181 201 comm2d = MPI_COMM_WORLD 182 183 ! 184 !-- Initialize PE topology in case of coupled runs202 ! 203 !-- Initialize PE topology in case of coupled atmosphere-ocean runs (comm_palm 204 !-- will be splitted in init_coupling) 185 205 CALL init_coupling 206 #endif 186 207 #endif 187 208 … … 291 312 !-- Initialize all necessary variables 292 313 CALL init_3d_model 314 315 #if defined( PMC_ACTIVE ) 316 ! 317 !-- Coupling protocol setup for nested-domain runs 318 CALL pmci_modelconfiguration 319 #endif 293 320 294 321 !
Note: See TracChangeset
for help on using the changeset viewer.