Changeset 65 for trunk/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90
- Timestamp:
- 01/02/13 18:50:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90
r37 r65 25 25 !! cpl_prism_finalize : finalize the coupled mode communication 26 26 !!---------------------------------------------------------------------- 27 #if defined key_oasis_mct 28 USE mod_prism 29 #else 27 30 USE mod_prism_proto ! OASIS3 prism module 28 31 USE mod_prism_def_partition_proto! OASIS3 prism module for partitioning … … 30 33 USE mod_prism_get_proto ! OASIS3 prism module for receiving 31 34 USE mod_comprism_proto ! OASIS3 prism module to get coupling frequency 35 #endif 32 36 USE par_oce ! ocean parameters 33 37 USE dom_oce ! ocean space and time domain … … 51 55 INTEGER :: nerror ! return error code 52 56 53 INTEGER, P ARAMETER :: nmaxfld=40 ! Maximum number of coupling fields57 INTEGER, PUBLIC, PARAMETER :: nmaxfld=40 ! Maximum number of coupling fields 54 58 55 59 TYPE, PUBLIC :: FLD_CPL !: Type for coupling field information … … 62 66 END TYPE FLD_CPL 63 67 64 TYPE(FLD_CPL), DIMENSION( nmaxfld), PUBLIC :: srcv, ssnd !: Coupling fields68 TYPE(FLD_CPL), DIMENSION(:), ALLOCATABLE, PUBLIC :: srcv, ssnd !: Coupling fields 65 69 66 70 REAL(wp), DIMENSION(:,:), ALLOCATABLE :: exfld ! Temporary buffer for receiving … … 87 91 ! WARNING: No write in numout in this routine 88 92 !============================================ 89 90 93 !------------------------------------------------------------------ 91 94 ! 1st Initialize the PRISM system for the application … … 194 197 zclname=srcv(ji)%clname 195 198 ENDIF 199 #if defined key_agrif 200 IF( agrif_fixed() /= 0 ) THEN 201 zclname=TRIM(Agrif_CFixed())//zclname(2:8) 202 END IF 203 #endif 196 204 IF( ln_ctl ) WRITE(numout,*) "Define",ji,jc,zclname," for",PRISM_In 197 205 CALL prism_def_var_proto ( srcv(ji)%nid(jc), zclname, id_part, (/ 2, 0/), & … … 208 216 ! End of definition phase 209 217 !------------------------------------------------------------------ 210 211 CALL prism_enddef_proto(nerror) 212 IF( nerror /= PRISM_Ok ) CALL prism_abort_proto ( ncomp_id, 'cpl_prism_define', 'Failure in prism_enddef') 213 ! 218 #if defined key_agrif 219 !!$ IF( agrif_fixed() == agrif_nb_fixed_grids() ) THEN 220 IF( .NOT. Agrif_Root() ) THEN 221 #endif 222 WRITE(numout,*) 'before prism_enddef_proto' 223 CALL FLUSH(numout) 224 225 CALL prism_enddef_proto(nerror) 226 IF( nerror /= PRISM_Ok ) CALL prism_abort_proto ( ncomp_id, 'cpl_prism_define', 'Failure in prism_enddef') 227 ! 228 WRITE(numout,*) 'after prism_enddef_proto' 229 CALL FLUSH(numout) 230 #if defined key_agrif 231 ENDIF 232 #endif 233 214 234 END SUBROUTINE cpl_prism_define 215 235 … … 322 342 INTEGER,INTENT(in) :: kid ! variable index 323 343 !!---------------------------------------------------------------------- 324 cpl_prism_freq = ig_def_freq( kid ) 344 !EM OASIS-MCT info not yet available on official distrib 345 ! cpl_prism_freq = ig_def_freq( kid ) 346 cpl_prism_freq = 300 325 347 ! 326 348 END FUNCTION cpl_prism_freq
Note: See TracChangeset
for help on using the changeset viewer.