Changeset 8166
- Timestamp:
- 2017-06-13T17:16:28+02:00 (6 years ago)
- Location:
- branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/NEMO/OPA_SRC/SBC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90
r8163 r8166 69 69 INTEGER, PUBLIC, PARAMETER :: nmaxcpl=5 ! Maximum number of coupling fields 70 70 71 INTEGER :: runoff_id 72 71 73 TYPE, PUBLIC :: FLD_CPL !: Type for coupling field information 72 74 LOGICAL :: laction ! To be coupled or not … … 288 290 ENDIF 289 291 END DO 292 293 ! Define river runoff 294 CALL oasis_def_var (runoff_id, 'runoffo', id_part , (/ 1, 0 /), & 295 & OASIS_In , (/ 10 /) , OASIS_REAL, nerror ) 296 IF ( nerror /= OASIS_Ok ) THEN 297 WRITE(numout,*) 'Failed to define transient runoffo' 298 CALL oasis_abort ( runoff_id, 'cpl_define', 'Failure in oasis_def_var' ) 299 ENDIF 290 300 291 301 !------------------------------------------------------------------ … … 415 425 ! 416 426 END SUBROUTINE cpl_rcv 427 428 SUBROUTINE runoff_rcv(kstep) 429 430 INTEGER , INTENT(in ) :: kstep ! ocean time-step in seconds 431 432 INTEGER :: kinfo ! OASIS3 info argument 433 REAL(wp) :: runoff(10) ! River runoff. One value per river. 434 435 ! Get the river runoff sent by the atmosphere 436 CALL oasis_get ( runoff_id, kstep, runoff, kinfo ) 437 WRITE(numout,*)' River runoff = ', runoff 438 WRITE(numout,*)' kinfo = ', kinfo 439 440 441 END SUBROUTINE runoff_rcv 417 442 418 443 -
branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90
r8163 r8166 866 866 IF( srcv(jn)%laction ) CALL cpl_rcv( jn, isec, frcv(jn)%z3, xcplmask(:,:,1:nn_cplmodel), nrcvinfo(jn) ) 867 867 END DO 868 869 CALL runoff_rcv(isec) 868 870 869 871 ! ! ========================= !
Note: See TracChangeset
for help on using the changeset viewer.