- Timestamp:
- 2015-06-08T15:13:26+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5218_CNRS17_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90
r5357 r5376 33 33 USE cpl_oasis3 ! OASIS3 coupling 34 34 USE geo2ocean ! 35 USE oce , ONLY : tsn, un, vn, sshn, ub, vb, tsb,sshb35 USE oce , ONLY : tsn, un, vn, sshn, ub, vb, sshb 36 36 USE albedo ! 37 37 USE in_out_manager ! I/O manager … … 42 42 USE lbclnk ! ocean lateral boundary conditions (or mpp link) 43 43 USE eosbn2 44 USE traqsr , ONLY : fraqsr_1lev 44 45 #if defined key_cpl_carbon_cycle 45 46 USE p4zflx, ONLY : oce_co2 … … 486 487 IF( nn_components == jp_iam_opa ) THEN ! OPA coupled to SAS via OASIS: force received field by OPA (sent by SAS) 487 488 srcv(:)%laction = .FALSE. ! force default definition in case of opa <-> sas coupling 489 srcv(:)%clgrid = 'T' ! force default definition in case of opa <-> sas coupling 490 srcv(:)%nsgn = 1. ! force default definition in case of opa <-> sas coupling 488 491 srcv( (/jpr_qsroce, jpr_qnsoce, jpr_oemp, jpr_sflx, jpr_fice, jpr_otx1, jpr_oty1, jpr_taum/) )%laction = .TRUE. 489 492 srcv(jpr_otx1)%clgrid = 'U' ! oce components given at U-point … … 525 528 IF( nn_components == jp_iam_sas ) THEN 526 529 IF( .NOT. ln_cpl ) srcv(:)%laction = .FALSE. ! force default definition in case of opa <-> sas coupling 527 srcv( (/jpr_toce, jpr_soce, jpr_ssh, jpr_e3t1st, jpr_fraqsr, jpr_ocx1, jpr_ocy1/) )%laction = .TRUE. 530 IF( .NOT. ln_cpl ) srcv(:)%clgrid = 'T' ! force default definition in case of opa <-> sas coupling 531 IF( .NOT. ln_cpl ) srcv(:)%nsgn = 1. ! force default definition in case of opa <-> sas coupling 532 srcv( (/jpr_toce, jpr_soce, jpr_ssh, jpr_fraqsr, jpr_ocx1, jpr_ocy1/) )%laction = .TRUE. 533 srcv( jpr_e3t1st )%laction = lk_vvl 534 srcv(jpr_ocx1)%clgrid = 'U' ! oce components given at U-point 535 srcv(jpr_ocy1)%clgrid = 'V' ! and V-point 528 536 ! Vectors: change of sign at north fold ONLY if on the local grid 529 537 srcv(jpr_ocx1:jpr_ocy1)%nsgn = -1. … … 690 698 IF( nn_components == jp_iam_opa ) THEN 691 699 ssnd(:)%laction = .FALSE. ! force default definition in case of opa <-> sas coupling 692 ssnd( (/jps_toce, jps_soce, jps_ssh, jps_e3t1st, jps_fraqsr, jps_ocx1, jps_ocy1/) )%laction = .TRUE. 700 ssnd( (/jps_toce, jps_soce, jps_ssh, jps_fraqsr, jps_ocx1, jps_ocy1/) )%laction = .TRUE. 701 ssnd( jps_e3t1st )%laction = lk_vvl 693 702 ! vector definition: not used but cleaner... 694 703 ssnd(jps_ocx1)%clgrid = 'U' ! oce components given at U-point … … 984 993 #endif 985 994 986 ! Fields received by ice modelwhen OASIS coupling995 ! Fields received by SAS when OASIS coupling 987 996 ! (arrays no more filled at sbcssm stage) 988 997 ! ! ================== ! … … 991 1000 IF( srcv(jpr_soce)%laction ) THEN ! received by sas in case of opa <-> sas coupling 992 1001 sss_m(:,:) = frcv(jpr_soce)%z3(:,:,1) 993 tsn(:,:,1,jp_sal) = sss_m(:,:)1002 CALL iom_put( 'sss_m', sss_m ) 994 1003 ENDIF 995 1004 ! … … 999 1008 IF( srcv(jpr_toce)%laction ) THEN ! received by sas in case of opa <-> sas coupling 1000 1009 sst_m(:,:) = frcv(jpr_toce)%z3(:,:,1) 1001 tsn(:,:,1,jp_tem) = sst_m(:,:) ! keep the received (potential or conservative) temperature in tsn1002 1010 IF( srcv(jpr_soce)%laction .AND. ln_useCT ) THEN ! make sure that sst_m is the potential temperature 1003 1011 sst_m(:,:) = eos_pt_from_ct( sst_m(:,:), sss_m(:,:) ) … … 1009 1017 IF( srcv(jpr_ssh )%laction ) THEN ! received by sas in case of opa <-> sas coupling 1010 1018 ssh_m(:,:) = frcv(jpr_ssh )%z3(:,:,1) 1011 sshn( :,:) = ssh_m(:,:)1019 CALL iom_put( 'ssh_m', ssh_m ) 1012 1020 ENDIF 1013 1021 ! ! ================== ! … … 1016 1024 IF( srcv(jpr_ocx1)%laction ) THEN ! received by sas in case of opa <-> sas coupling 1017 1025 ssu_m(:,:) = frcv(jpr_ocx1)%z3(:,:,1) 1018 ub (:,:,1) = ssu_m(:,:) 1026 ub (:,:,1) = ssu_m(:,:) ! will be used in sbcice_lim in the call of lim_sbc_tau 1027 CALL iom_put( 'ssu_m', ssu_m ) 1019 1028 ENDIF 1020 1029 IF( srcv(jpr_ocy1)%laction ) THEN 1021 1030 ssv_m(:,:) = frcv(jpr_ocy1)%z3(:,:,1) 1022 vb (:,:,1) = ssv_m(:,:) 1031 vb (:,:,1) = ssv_m(:,:) ! will be used in sbcice_lim in the call of lim_sbc_tau 1032 CALL iom_put( 'ssv_m', ssv_m ) 1023 1033 ENDIF 1024 1034 ! ! ======================== ! … … 1026 1036 ! ! ======================== ! 1027 1037 IF( srcv(jpr_e3t1st )%laction ) THEN ! received by sas in case of opa <-> sas coupling 1028 fse3t_m(:,:) = frcv(jpr_e3t1st )%z3(:,:,1) 1038 e3t_m(:,:) = frcv(jpr_e3t1st )%z3(:,:,1) 1039 CALL iom_put( 'e3t_m', e3t_m(:,:) ) 1029 1040 ENDIF 1030 1041 ! ! ================================ ! … … 1033 1044 IF( srcv(jpr_fraqsr)%laction ) THEN ! received by sas in case of opa <-> sas coupling 1034 1045 frq_m(:,:) = frcv(jpr_fraqsr)%z3(:,:,1) 1046 CALL iom_put( 'frq_m', frq_m ) 1035 1047 ENDIF 1036 1048 … … 1937 1949 ! 1938 1950 ! 1939 ! Fields sent to SAS by OPAwhen doing OPA<->SAS coupling1951 ! Fields sent by OPA to SAS when doing OPA<->SAS coupling 1940 1952 ! ! SSH 1941 1953 IF( ssnd(jps_ssh )%laction ) THEN … … 1958 1970 ! ! Qsr fraction 1959 1971 IF( ssnd(jps_fraqsr)%laction ) THEN 1960 CALL cpl_snd( jps_fraqsr, isec, RESHAPE ( fr q_m, (/jpi,jpj,1/) ), info )1961 ENDIF 1962 ! 1963 ! Fields sent to ocean by ice modelwhen OASIS coupling1972 CALL cpl_snd( jps_fraqsr, isec, RESHAPE ( fraqsr_1lev(:,:) , (/jpi,jpj,1/) ), info ) 1973 ENDIF 1974 ! 1975 ! Fields sent by SAS to OPA when OASIS coupling 1964 1976 ! ! Solar heat flux 1965 1977 IF( ssnd(jps_qsroce)%laction ) CALL cpl_snd( jps_qsroce, isec, RESHAPE ( qsr , (/jpi,jpj,1/) ), info )
Note: See TracChangeset
for help on using the changeset viewer.