- Timestamp:
- 2018-10-23T16:41:23+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_GO6_runoff_O4test/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90
r10195 r10214 163 163 INTEGER :: id_part_rnf_1d ! Partition for 1d river outflow fields 164 164 INTEGER :: id_part_temp ! Temperary partition used to choose either 0d or 1d partitions 165 INTEGER :: vector_length ! Length of 0d or 1d variables (0d variables will have vector_length=1)166 165 INTEGER :: paral(5) ! OASIS3 box partition 167 INTEGER :: ishape(4) ! Shape of arrays passed to PSMILe.166 INTEGER :: ishape(4) ! Shape of 2D arrays passed to PSMILe. 168 167 ! Redundant from OASIS3-MCT vn4.0 onwards but required 169 168 ! to satisfy interface and for backward compatibility. 169 INTEGER :: ishape0d1d(2) ! Shape of 0D or 1D arrays passed to PSMILe. 170 170 INTEGER :: var_nodims(2) ! Number of coupling field dimensions. 171 171 ! var_nodims(1) is redundant from OASIS3-MCT vn4.0 onwards … … 209 209 ishape(4) = nlej-nldj+1 210 210 211 ishape0d1d(1) = 0 212 ishape0d1d(2) = 0 211 213 212 214 ! … … 358 360 IF (nproc == 0) THEN 359 361 362 ishape0d1d(1) = 1 360 363 IF (srcv(ji)%dimensions == 0) THEN 361 364 362 365 ! If 0D then set temporary variables to 0D components 363 366 id_part_temp = id_part_0d 364 vector_length= 1367 ishape0d1d(2) = 1 365 368 ELSE 366 369 367 370 ! If 1D then set temporary variables to river outflow components 368 371 id_part_temp = id_part_rnf_1d 369 vector_length= nn_cpl_river372 ishape0d1d(2)= nn_cpl_river 370 373 371 374 END IF 372 375 373 376 CALL oasis_def_var (srcv(ji)%nid(jc,jm), zclname, id_part_temp , var_nodims, & 374 OASIS_In , (/ 1, vector_length /) , OASIS_REAL, nerror ) 375 ELSE 377 OASIS_In , ishape0d1d(1:2) , OASIS_REAL, nerror ) 378 379 ELSE 380 ishape0d1d(1) = 0 381 ishape0d1d(2) = 0 376 382 ! Dummy call to keep OASIS3-MCT happy. 377 383 CALL oasis_def_var (srcv(ji)%nid(jc,jm), zclname, id_part_0d , var_nodims, & 378 OASIS_In , (/ 0, 0 /) , OASIS_REAL, nerror ) 379 END IF 384 OASIS_In , ishape0d1d(1:2) , OASIS_REAL, nerror ) 385 386 ENDIF 380 387 ELSE 381 388 ! It's a "normal" 2D (or pseudo 3D) coupling field.
Note: See TracChangeset
for help on using the changeset viewer.