Changeset 9242 for branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90
- Timestamp:
- 2018-01-16T15:42:45+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90
r9156 r9242 38 38 PUBLIC cpl_define 39 39 PUBLIC cpl_snd 40 PUBLIC runoff_rcv41 40 PUBLIC cpl_rcv 42 41 PUBLIC cpl_freq … … 69 68 INTEGER, PUBLIC, PARAMETER :: nmaxcat=5 ! Maximum number of coupling fields 70 69 INTEGER, PUBLIC, PARAMETER :: nmaxcpl=5 ! Maximum number of coupling fields 71 INTEGER, PUBLIC, PARAMETER :: n_rivers=2000 ! Total number of rivers whose runoff is passed from the atmosphere70 INTEGER, PUBLIC, PARAMETER :: n_rivers=2000 ! Total number of rivers in coupled runoff using 1D array 72 71 73 INTEGER :: runoff_id72 INTEGER, PUBLIC :: runoff_id 74 73 75 74 TYPE, PUBLIC :: FLD_CPL !: Type for coupling field information … … 141 140 ! 142 141 INTEGER :: id_part ! Partition for all 2D model fields to be coupled 143 INTEGER :: id_part_r ! Partition for river runoff142 INTEGER :: id_part_rnf_1d ! Partition for river runoff using 1D array 144 143 INTEGER :: paral(5) ! OASIS3 box partition 145 144 INTEGER :: ishape(2,2) ! shape of arrays passed to PSMILe … … 203 202 CALL oasis_def_partition ( id_part, paral, nerror ) 204 203 ! 205 ! Another partition is needed for river runoff 204 ! Another partition is needed for river runoff when using 1D array 206 205 207 206 paral(1) = 0 ! serial partitioning … … 211 210 paral(5) = 0 212 211 213 CALL oasis_def_partition ( id_part_r , paral, nerror, n_rivers )212 CALL oasis_def_partition ( id_part_rnf_1d, paral, nerror, n_rivers ) 214 213 215 214 ! ... Announce send variables. … … 304 303 END DO 305 304 306 ! Define river runoff307 CALL oasis_def_var (runoff_id, 'runoffo', id_part_r , (/ 1, 0 /), &305 ! Define coupled river runoff using 1D array 306 CALL oasis_def_var (runoff_id, 'runoffo', id_part_rnf_1d , (/ 1, 0 /), & 308 307 & OASIS_In , (/ 1, n_rivers /) , OASIS_REAL, nerror ) 309 308 IF ( nerror /= OASIS_Ok ) THEN … … 439 438 END SUBROUTINE cpl_rcv 440 439 441 SUBROUTINE runoff_rcv( kstep)442 443 INTEGER , INTENT(in ) :: kstep ! ocean time-step in seconds444 445 INTEGER :: kinfo ! OASIS3 info argument446 REAL(wp) :: runoff(n_rivers) ! River runoff. One value per river.447 448 ! Get the river runoff sent by the atmosphere449 CALL oasis_get ( runoff_id, kstep, runoff, kinfo )450 ! IF ( narea == 1 ) THEN451 WRITE(numout,*)' narea = ', narea452 WRITE(numout,*)' kstep = ', kstep453 WRITE(numout,*)' River runoff = ', runoff454 WRITE(numout,*)' kinfo = ', kinfo455 WRITE(numout,*)'-------'456 ! ENDIF457 458 459 END SUBROUTINE runoff_rcv460 461 462 440 INTEGER FUNCTION cpl_freq( cdfieldname ) 463 441 !!---------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.