Changeset 1226 for trunk/NEMO/OPA_SRC/SBC/cpl_oasis3.F90
- Timestamp:
- 2008-11-27T18:41:45+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/SBC/cpl_oasis3.F90
r1218 r1226 44 44 INTEGER :: nerror ! return error code 45 45 46 INTEGER, PUBLIC :: nrcv, nsnd ! Number of received and sent coupling fields47 48 46 INTEGER, PARAMETER :: nmaxfld=40 ! Maximum number of coupling fields 49 47 … … 75 73 CONTAINS 76 74 77 SUBROUTINE cpl_prism_init 75 SUBROUTINE cpl_prism_init (kl_comm) 78 76 79 77 !!------------------------------------------------------------------- … … 85 83 !! ** Method : OASIS3 MPI communication 86 84 !!-------------------------------------------------------------------- 87 !! 85 INTEGER, INTENT( OUT ) :: kl_comm ! local communicator of the model 86 !!-------------------------------------------------------------------- 88 87 89 88 IF(lwp) WRITE(numout,*) 'cpl_prism_init : initialization in coupled ocean/atmosphere case' … … 101 100 !------------------------------------------------------------------ 102 101 103 CALL prism_get_localcomm_proto ( nlocalComm, nerror )102 CALL prism_get_localcomm_proto ( kl_comm, nerror ) 104 103 IF ( nerror /= PRISM_Ok ) & 105 104 CALL prism_abort_proto (ncomp_id, 'cpl_prism_init','Failure in prism_get_localcomm_proto' ) … … 108 107 109 108 110 SUBROUTINE cpl_prism_define ( )109 SUBROUTINE cpl_prism_define (krcv, ksnd) 111 110 112 111 !!------------------------------------------------------------------- … … 118 117 !! ** Method : OASIS3 MPI communication 119 118 !!-------------------------------------------------------------------- 120 !! * Arguments 121 !! 122 !! * Local declarations 123 !! 119 INTEGER, INTENT( IN ) :: krcv, ksnd ! Number of received and sent coupling fields 120 ! 124 121 INTEGER :: id_part 125 122 INTEGER :: paral(5) ! OASIS3 box partition … … 171 168 ! ... Announce send variables. 172 169 ! 173 DO ji = 1, nsnd170 DO ji = 1, ksnd 174 171 IF ( ssnd(ji)%laction ) THEN 175 172 CALL prism_def_var_proto (ssnd(ji)%nid, ssnd(ji)%clname, id_part, (/ 2, 0/), & … … 184 181 ! ... Announce received variables. 185 182 ! 186 DO ji = 1, nrcv183 DO ji = 1, krcv 187 184 IF ( srcv(ji)%laction ) THEN 188 185 CALL prism_def_var_proto ( srcv(ji)%nid, srcv(ji)%clname, id_part, (/ 2, 0/), & … … 292 289 WRITE(numout,*) ' - Sum value is ', SUM(pdata) 293 290 WRITE(numout,*) '****************' 294 call flush(numout)295 291 ENDIF 296 292 … … 329 325 CONTAINS 330 326 331 SUBROUTINE cpl_prism_init 327 SUBROUTINE cpl_prism_init (kl_comm) 328 INTEGER, INTENT( OUT ) :: kl_comm ! local communicator of the model 329 kl_comm = -1 332 330 WRITE(numout,*) 'cpl_prism_init: Error you sould not be there...' 333 331 END SUBROUTINE cpl_prism_init
Note: See TracChangeset
for help on using the changeset viewer.