Changeset 9918
- Timestamp:
- 2018-07-10T17:00:38+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_merge_2017_GC_couple_pkg/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90
r9679 r9918 156 156 CHARACTER(LEN=64) :: zclname 157 157 CHARACTER(LEN=2) :: cli2 158 INTEGER :: nldi_save, nlei_save 159 INTEGER :: nldj_save, nlej_save 158 160 !!-------------------------------------------------------------------- 159 161 … … 177 179 CALL oasis_abort ( ncomp_id, 'cpl_define', 'nsnd is larger than nmaxfld, increase nmaxfld') ; RETURN 178 180 ENDIF 181 182 nldi_save = nldi ; nlei_save = nlei 183 nldj_save = nldj ; nlej_save = nlej 184 IF( nimpp == 1 ) nldi = 1 185 IF( nimpp + jpi - 1 == jpiglo ) nlei = jpi 186 IF( njmpp == 1 ) nldj = 1 187 IF( njmpp + jpj - 1 == jpjglo ) nlej = jpj 179 188 ! 180 189 ! ... Define the shape for the area that excludes the halo … … 308 317 CALL oasis_enddef(nerror) 309 318 IF( nerror /= OASIS_Ok ) CALL oasis_abort ( ncomp_id, 'cpl_define', 'Failure in oasis_enddef') 319 320 nldi = nldi_save ; nlei = nlei_save 321 nldj = nldj_save ; nlej = nlej_save 322 310 323 ! 311 324 END SUBROUTINE cpl_define … … 325 338 !! 326 339 INTEGER :: jc,jm ! local loop index 340 INTEGER :: nldi_save, nlei_save 341 INTEGER :: nldj_save, nlej_save 327 342 !!-------------------------------------------------------------------- 328 343 ! 329 344 ! snd data to OASIS3 330 345 ! 346 347 nldi_save = nldi ; nlei_save = nlei 348 nldj_save = nldj ; nlej_save = nlej 349 IF( nimpp == 1 ) nldi = 1 350 IF( nimpp + jpi - 1 == jpiglo ) nlei = jpi 351 IF( njmpp == 1 ) nldj = 1 352 IF( njmpp + jpj - 1 == jpjglo ) nlej = jpj 331 353 DO jc = 1, ssnd(kid)%nct 332 354 DO jm = 1, ssnd(kid)%ncplmodel … … 354 376 ENDDO 355 377 ENDDO 378 nldi = nldi_save ; nlei = nlei_save 379 nldj = nldj_save ; nlej = nlej_save 356 380 ! 357 381 END SUBROUTINE cpl_snd … … 379 403 kinfo = OASIS_idle 380 404 ! 405 nldi_save = nldi ; nlei_save = nlei 406 nldj_save = nldj ; nlej_save = nlej 407 IF( nimpp == 1 ) nldi = 1 408 IF( nimpp + jpi - 1 == jpiglo ) nlei = jpi 409 IF( njmpp == 1 ) nldj = 1 410 IF( njmpp + jpj - 1 == jpjglo ) nlej = jpj 381 411 DO jc = 1, srcv(kid)%nct 382 412 llfisrt = .TRUE. … … 420 450 421 451 ENDDO 452 nldi = nldi_save ; nlei = nlei_save 453 nldj = nldj_save ; nlej = nlej_save 422 454 423 455 !--- Fill the overlap areas and extra hallows (mpp)
Note: See TracChangeset
for help on using the changeset viewer.