Changeset 291 for palm/trunk/SOURCE/init_coupling.f90
- Timestamp:
- Apr 16, 2009 12:07:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_coupling.f90
r226 r291 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! 6 ! Coupling with independent precursor runs. 7 7 ! 8 8 ! Former revisions: … … 27 27 !-- Local variables 28 28 INTEGER :: i, inter_color 29 INTEGER, DIMENSION(:) :: bc_data(0: 2) = 029 INTEGER, DIMENSION(:) :: bc_data(0:3) = 0 30 30 31 31 ! … … 48 48 READ (*,*,ERR=10,END=10) coupling_mode, bc_data(1), bc_data(2) 49 49 10 CONTINUE 50 51 50 #if defined( __mpi2 ) 52 51 IF ( TRIM( coupling_mode ) == 'atmosphere_to_ocean' ) THEN … … 64 63 ENDIF 65 64 #endif 66 bc_data(0) = i 65 bc_data(0) = i 66 67 ! 68 !-- Check if '_O' has to be used as file extension in an uncoupled ocean 69 !-- run. This is required, if this run shall be continued as a coupled run. 70 IF ( TRIM( coupling_mode ) == 'precursor_ocean' ) bc_data(3) = 1 71 67 72 ENDIF 68 73 69 CALL MPI_BCAST( bc_data(0), 3, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr )74 CALL MPI_BCAST( bc_data(0), 4, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr ) 70 75 i = bc_data(0) 71 76 … … 114 119 #endif 115 120 116 IF ( coupling_mode == 'ocean_to_atmosphere' ) coupling_char = '_O' 121 ! 122 !-- In case of a precursor ocean run (followed by a coupled run), or a 123 !-- coupled atmosphere-ocean run, set the file extension for the ocean files 124 IF ( TRIM( coupling_mode ) == 'ocean_to_atmosphere' .OR. bc_data(3) == 1 ) & 125 THEN 126 coupling_char = '_O' 127 ENDIF 117 128 118 129 END SUBROUTINE init_coupling
Note: See TracChangeset
for help on using the changeset viewer.