- Timestamp:
- 2017-12-15T11:35:07+01:00 (6 years ago)
- Location:
- branches/NERC/dev_r5518_GO6_Carb_Fail_from_GO6_8356/NEMOGCM/NEMO/OPA_SRC/SBC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NERC/dev_r5518_GO6_Carb_Fail_from_GO6_8356/NEMOGCM/NEMO/OPA_SRC/SBC/sbc_ice.F90
r6498 r9070 110 110 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: u_ice, v_ice ! jpi, jpj 111 111 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: a_p, ht_p ! Meltpond fraction and depth 112 113 ! 114 115 ! 116 #if defined key_asminc 117 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ndaice_da !: NEMO fresh water flux to ocean due to data assim 118 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: nfresh_da !: NEMO salt flux to ocean due to data assim 119 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: nfsalt_da !: NEMO ice concentration change/second from data assim 120 #endif 121 112 122 #endif 113 123 … … 162 172 ss_iov(jpi,jpj) , fr_iu(jpi,jpj) , fr_iv(jpi,jpj) , & 163 173 a_i(jpi,jpj,ncat) , topmelt(jpi,jpj,ncat) , botmelt(jpi,jpj,ncat) , & 174 #if defined key_asminc 175 ndaice_da(jpi,jpj) , nfresh_da(jpi,jpj) , nfsalt_da(jpi,jpj) , & 176 #endif 164 177 sstfrz(jpi,jpj) , STAT= ierr(1) ) 165 178 ! Alex West: Allocating tn_ice with 5 categories. When NEMO is used with CICE, this variable -
branches/NERC/dev_r5518_GO6_Carb_Fail_from_GO6_8356/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90
r8280 r9070 2137 2137 REAL(wp) :: zumax, zvmax 2138 2138 REAL(wp), POINTER, DIMENSION(:,:) :: zfr_l, ztmp1, ztmp2, zotx1, zoty1, zotz1, zitx1, zity1, zitz1 2139 REAL(wp), POINTER, DIMENSION(:,:) :: zotx1_in, zoty1_in 2139 2140 REAL(wp), POINTER, DIMENSION(:,:,:) :: ztmp3, ztmp4 2140 2141 !!---------------------------------------------------------------------- … … 2143 2144 ! 2144 2145 CALL wrk_alloc( jpi,jpj, zfr_l, ztmp1, ztmp2, zotx1, zoty1, zotz1, zitx1, zity1, zitz1 ) 2146 CALL wrk_alloc( jpi,jpj, zotx1_in, zoty1_in) 2145 2147 CALL wrk_alloc( jpi,jpj,jpl, ztmp3, ztmp4 ) 2146 2148 … … 2411 2413 zotx1(:,:) = un(:,:,1) 2412 2414 zoty1(:,:) = vn(:,:,1) 2413 ELSE 2415 ELSE 2414 2416 SELECT CASE( TRIM( sn_snd_crt%cldes ) ) 2415 2417 CASE( 'oce only' ) ! C-grid ==> T … … 2547 2549 ENDDO 2548 2550 ENDDO 2549 2551 2550 2552 ! Ensure any N fold and wrap columns are updated 2551 2553 CALL lbc_lnk(ztmp1, 'V', -1.0) 2552 2554 CALL lbc_lnk(ztmp2, 'U', -1.0) 2553 2555 2554 2556 ikchoix = -1 2555 CALL repcmo (zotx1,ztmp2,ztmp1,zoty1,zotx1,zoty1,ikchoix) 2557 ! We need copies of zotx1 and zoty2 in order to avoid problems 2558 ! caused by INTENTs used in the following subroutine. 2559 zotx1_in(:,:) = zotx1(:,:) 2560 zoty1_in(:,:) = zoty1(:,:) 2561 CALL repcmo (zotx1_in,ztmp2,ztmp1,zoty1_in,zotx1,zoty1,ikchoix) 2556 2562 ENDIF 2557 2563 ENDIF … … 2622 2628 ! 2623 2629 CALL wrk_dealloc( jpi,jpj, zfr_l, ztmp1, ztmp2, zotx1, zoty1, zotz1, zitx1, zity1, zitz1 ) 2630 CALL wrk_dealloc( jpi,jpj, zotx1_in, zoty1_in ) 2624 2631 CALL wrk_dealloc( jpi,jpj,jpl, ztmp3, ztmp4 ) 2625 2632 ! -
branches/NERC/dev_r5518_GO6_Carb_Fail_from_GO6_8356/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_cice.F90
r8280 r9070 56 56 fresh_ai,fhocn_ai,fswthru_ai,frzmlt, & 57 57 flatn_f,fsurfn_f,fcondtopn_f, & 58 #ifdef key_asminc 59 daice_da,fresh_da,fsalt_da, & 60 #endif 58 61 uatm,vatm,wind,fsw,flw,Tair,potT,Qa,rhoa,zlvl, & 59 62 swvdr,swvdf,swidr,swidf,Tf, & … … 301 304 302 305 CALL wrk_dealloc( jpi,jpj, ztmp1, ztmp2 ) 306 307 #if defined key_asminc 308 ! Initialize fresh water and salt fluxes from data assim 309 ! and data assimilation index to cice 310 nfresh_da(:,:) = 0.0 311 nfsalt_da(:,:) = 0.0 312 ndaice_da(:,:) = 0.0 313 #endif 303 314 ! 304 315 ! In coupled mode get extra fields from CICE for passing back to atmosphere … … 454 465 ENDIF 455 466 467 #if defined key_asminc 468 !Ice concentration change (from assimilation) 469 ztmp(:,:)=ndaice_da(:,:)*tmask(:,:,1) 470 Call nemo2cice(ztmp,daice_da,'T', 1. ) 471 #endif 472 456 473 ! Snowfall 457 474 ! Ensure fsnow is positive (as in CICE routine prepare_forcing) … … 716 733 snwice_fmass (:,:) = ( snwice_mass(:,:) - snwice_mass_b(:,:) ) / dt 717 734 ENDIF 735 736 #if defined key_asminc 737 ! Import fresh water and salt flux due to seaice da 738 CALL cice2nemo(fresh_da, nfresh_da,'T',1.0) 739 CALL cice2nemo(fsalt_da, nfsalt_da,'T',1.0) 740 #endif 718 741 719 742 ! Release work space
Note: See TracChangeset
for help on using the changeset viewer.