Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
png(:,:,:)=0.0
DO jn=1,jpnij
DO jj=njs0all(jn),nje0all(jn)
DO ji=nis0all(jn),nie0all(jn)
png(ji,jj,jn)=pcg(ji+nimppt(jn)-1-ji_off,jj+njmppt(jn)-1-jj_off)
ENDDO
ENDDO
ENDDO
ENDIF
! C. Scatter png into NEMO field (pn) for each processor
IF( jpnij > 1) THEN
CALL mppsync
CALL mppscatter (png,0,pn)
CALL mppsync
ELSE
pn(:,:)=png(:,:,1)
ENDIF
#endif
! D. Ensure all haloes are filled in pn
CALL lbc_lnk( 'sbcice_cice', pn , cd_type, psgn )
END SUBROUTINE cice2nemo
#else
!!----------------------------------------------------------------------
!! Default option Dummy module NO CICE sea-ice model
!!----------------------------------------------------------------------
CONTAINS
SUBROUTINE sbc_ice_cice ( kt, ksbc ) ! Dummy routine
IMPLICIT NONE
INTEGER, INTENT( in ) :: kt, ksbc
WRITE(*,*) 'sbc_ice_cice: You should not have seen this print! error?', kt
END SUBROUTINE sbc_ice_cice
SUBROUTINE cice_sbc_init (ksbc, Kbb, Kmm) ! Dummy routine
IMPLICIT NONE
INTEGER, INTENT( in ) :: ksbc
INTEGER, INTENT( in ) :: Kbb, Kmm
WRITE(*,*) 'cice_sbc_init: You should not have seen this print! error?', ksbc
END SUBROUTINE cice_sbc_init
SUBROUTINE cice_sbc_final ! Dummy routine
IMPLICIT NONE
WRITE(*,*) 'cice_sbc_final: You should not have seen this print! error?'
END SUBROUTINE cice_sbc_final
#endif
!!======================================================================
END MODULE sbcice_cice