Changeset 9314
- Timestamp:
- 2018-02-09T12:03:12+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_rnf_1d.F90
r9313 r9314 38 38 INTEGER, PUBLIC :: nn_cpl_river ! Maximum number of rivers being passed through the coupler 39 39 INTEGER, PUBLIC :: runoff_id ! OASIS coupling id used in oasis_get command 40 LOGICAL :: ln_print_river_info ! Diagnostic prints of river coupling information 40 41 41 42 CONTAINS … … 59 60 REAL(wp), POINTER, DIMENSION(:,:) :: river_number ! 2D array containing the river outflow numbers 60 61 61 NAMELIST/nam_cpl_rnf_1d/file_riv_number, nn_cpl_river 62 NAMELIST/nam_cpl_rnf_1d/file_riv_number, nn_cpl_river, ln_print_river_info 62 63 !!---------------------------------------------------------------------- 63 64 … … 81 82 IF(lwp) WRITE(numout,*) ' Namelist nam_cpl_rnf_1d : Coupled runoff using 1D array' 82 83 IF(lwp) WRITE(numout,*) ' Input file that contains river numbers = ',file_riv_number 84 IF(lwp) WRITE(numout,*) ' Maximum number of rivers to couple = ',nn_cpl_river 85 IF(lwp) WRITE(numout,*) ' Print river information = ',ln_print_river_info 83 86 IF(lwp) WRITE(numout,*) ' ' 84 87 … … 97 100 DO jj = 1, jpj 98 101 rivers%river_number(ii,jj) = INT(river_number(ii,jj)) 99 100 102 IF ( rivers%river_number(ii,jj) > max_river ) THEN 101 103 max_river = rivers%river_number(ii,jj) 102 END IF103 104 IF ( ii == 59 .AND. jj == 29 ) THEN105 WRITE(numout,*) 'Amazon grid point river number (float) = ',river_number(ii,jj)106 WRITE(numout,*) 'Amazon grid point river number (int) = ',INT(river_number(ii,jj))107 WRITE(numout,*) 'Amazon grid point river number (store) = ',rivers%river_number(ii,jj)108 WRITE(numout,*) 'max_river at this stage = ',max_river109 WRITE(numout,*) 'Amazon grid box area = ',e1e2t(ii,jj)110 104 END IF 111 105 END DO … … 113 107 114 108 ! Print out the largest river number 115 WRITE(numout,*) 'Maximum river number = ',max_river109 WRITE(numout,*) 'Maximum river number in input file = ',max_river 116 110 117 111 ! Get the area of each river outflow … … 128 122 ! Use mpp_sum to add together river areas on other processors 129 123 CALL mpp_sum( rivers%river_area, nn_cpl_river ) 130 WRITE(numout,*) 'Area of river number 1 is ',rivers%river_area(1)131 WRITE(numout,*) 'Area of river number 10 is ',rivers%river_area(10)132 124 IF ( ln_print_river_info ) THEN 125 WRITE(numout,*) 'Area of rivers 1 to 10 are ',rivers%river_area(1:10) 126 END IF 133 127 134 128 END SUBROUTINE cpl_rnf_1d_init … … 153 147 LOGICAL :: llaction ! Has the get worked? 154 148 155 IF ( ln_ ctl) THEN149 IF ( ln_print_river_info ) THEN 156 150 WRITE(numout,*)' Getting data from 1D river runoff coupling ' 157 151 ENDIF … … 163 157 164 158 ! Output coupling info 165 IF ( ln_ ctl) THEN159 IF ( ln_print_river_info ) THEN 166 160 WRITE(numout,*)' narea = ', narea 167 161 WRITE(numout,*)' kstep = ', kstep … … 193 187 END IF 194 188 195 IF ( ln_ ctl) WRITE(numout,*)' River runoff flux of AMAZON (pe 351) is ', rnf(59,29)189 IF ( ln_print_river_info ) WRITE(numout,*)' River runoff flux of AMAZON (pe 351) is ', rnf(59,29) 196 190 197 191 END SUBROUTINE cpl_rnf_1d_rcv
Note: See TracChangeset
for help on using the changeset viewer.