Changeset 4564 for palm/trunk/SOURCE/init_coupling.f90
- Timestamp:
- Jun 12, 2020 2:03:36 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_coupling.f90
r4444 r4564 25 25 ! ------------------ 26 26 ! $Id$ 27 ! Vertical nesting method of Huq et al. (2019) removed 28 ! 29 ! 4444 2020-03-05 15:59:50Z raasch 27 30 ! bugfix: cpp-directives for serial mode added 28 31 ! … … 50 53 51 54 USE pegrid 52 53 USE vertical_nesting_mod54 55 55 56 IMPLICIT NONE … … 84 85 IF ( TRIM( coupling_mode ) == 'coupled_run' ) THEN 85 86 i = 1 86 ELSEIF ( TRIM( coupling_mode ) == 'vnested_twi' ) THEN87 i = 988 87 ELSE 89 88 i = 0 … … 111 110 CLOSE ( 90 ) 112 111 ENDIF 113 ELSEIF ( i == 9 ) THEN114 115 !116 !-- Set a flag to identify runs with vertical nesting117 vnested = .TRUE.118 119 comm_inter = MPI_COMM_WORLD120 121 !122 !-- Split the total available PE's into two groups123 !-- numprocs for coarse and fine grid are read from stdin (see above, and124 !-- execution command in the palmrun script, numprocs are provided via125 !-- palmrun option -Y)126 IF ( myid < bc_data(1) ) THEN127 inter_color = 0128 numprocs = bc_data(1)129 coupling_mode = 'vnested_crse'130 ELSE131 inter_color = 1132 numprocs = bc_data(2)133 coupling_mode = 'vnested_fine'134 ENDIF135 136 CALL MPI_COMM_SPLIT( MPI_COMM_WORLD, inter_color, 0, comm_palm, ierr )137 comm2d = comm_palm138 139 OPEN( 90, FILE='VNESTING_PORT_OPENED', FORM='FORMATTED' )140 WRITE ( 90, '(''TRUE'')' )141 CLOSE ( 90 )142 143 112 ELSE 144 113 comm_inter = MPI_COMM_WORLD … … 174 143 ENDIF 175 144 176 IF ( TRIM( coupling_mode ) == 'vnested_fine' ) THEN177 !178 !-- Set file extension for vertical nesting179 coupling_char = '_NV'180 ENDIF181 182 145 END SUBROUTINE init_coupling
Note: See TracChangeset
for help on using the changeset viewer.