New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 1227 – NEMO

Changeset 1227


Ignore:
Timestamp:
2008-12-01T07:52:11+01:00 (15 years ago)
Author:
smasson
Message:

minor bugfix for new coupling interface (continue changeset:1226), see ticket:155

Location:
trunk/NEMO/OPA_SRC/SBC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/cpl_oasis3.F90

    r1226 r1227  
    3434   USE dom_oce                      ! ocean space and time domain 
    3535   USE in_out_manager               ! I/O manager 
    36    USE lib_mpp 
    3736   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    3837   IMPLICIT NONE 
    3938   PRIVATE 
    4039! 
    41    INTEGER, PUBLIC            :: nlocalComm 
    4240   LOGICAL, PUBLIC, PARAMETER :: lk_cpl = .TRUE.   ! coupled flag 
    4341   INTEGER                    :: ncomp_id          ! id returned by prism_init_comp 
     
    222220      ! snd data to OASIS3 
    223221      ! 
    224       IF( lk_mpp ) THEN   ;   CALL prism_put_proto ( ssnd(kid)%nid, kstep, pdata(nldi:nlei, nldj:nlej), kinfo ) 
    225       ELSE                ;   CALL prism_put_proto ( ssnd(kid)%nid, kstep, pdata                      , kinfo ) 
    226       ENDIF 
     222      CALL prism_put_proto ( ssnd(kid)%nid, kstep, pdata(nldi:nlei, nldj:nlej), kinfo ) 
    227223       
    228224      IF ( ln_ctl ) THEN         
     
    271267      IF ( llaction ) THEN 
    272268 
    273          IF( lk_mpp ) THEN   ;   pdata(nldi:nlei, nldj:nlej) = exfld(:,:) 
    274          ELSE                ;   pdata(    :    ,     :    ) = exfld(:,:) 
    275          ENDIF 
     269         pdata(nldi:nlei, nldj:nlej) = exfld(:,:) 
    276270          
    277271         !--- Fill the overlap areas and extra hallows (mpp) 
  • trunk/NEMO/OPA_SRC/SBC/sbccpl.F90

    r1226 r1227  
    950950!!gm  cpl_albedo ???? kezako ?????   je pige pas grand chose ici.... 
    951951         pqsr_ice(:,:) = frcv(:,:,jpr_qsrmix) * ( 1.- palbi(:,:) )   & 
    952             &          / (  1.- ( cpl_ocean_albedo(ji,jj) * ( 1.- p_frld(ji,jj) )   & 
    953             &                   + palbi           (ji,jj) *       p_frld(ji,jj)   )  ) 
     952            &          / (  1.- ( albedo_oce_mix(ji,jj) * ( 1.- p_frld(ji,jj) )   & 
     953            &                   + palbi         (ji,jj) *       p_frld(ji,jj)   )  ) 
    954954      END SELECT 
    955955 
     
    11471147      &                                pqns_tot, pqns_ice,         & 
    11481148      &                                pqsr_tot, pqsr_ice,         & 
    1149       &                                pemp_tot, pemp_ice, psprecip ) 
     1149      &                                pemp_tot, pemp_ice, pdqns_ice, psprecip ) 
    11501150      REAL(wp), INTENT(in   ), DIMENSION(:,:) ::   p_frld     ! lead fraction                [0 to 1] 
    11511151      REAL(wp), INTENT(in   ), DIMENSION(:,:) ::   palbi      ! ice albedo 
     
    11581158      REAL(wp), INTENT(  out), DIMENSION(:,:) ::   pemp_tot   ! total     freshwater budget  [Kg/m2/s] 
    11591159      REAL(wp), INTENT(  out), DIMENSION(:,:) ::   pemp_ice   ! ice solid freshwater budget  [Kg/m2/s] 
     1160      REAL(wp), INTENT(  out), DIMENSION(:,:) ::   pdqns_ice  ! d(Q non solar)/d(Temperature) over ice 
    11601161      REAL(wp), INTENT(  out), DIMENSION(:,:) ::   psprecip   ! solid precipitation          [Kg/m2/s] 
    11611162      WRITE(*,*) 'sbc_cpl_snd: You should not have seen this print! error?', p_frld(1,1), palbi(1,1), psst(1,1), pist(1,1) 
    11621163      ! stupid definition to avoid warning message when compiling... 
    1163       pqns_tot(:,:) = 0. ; pqns_ice(:,:) = 0.  
     1164      pqns_tot(:,:) = 0. ; pqns_ice(:,:) = 0. ; pdqns_ice(:,:) = 0. 
    11641165      pqsr_tot(:,:) = 0. ; pqsr_ice(:,:) = 0.  
    11651166      pemp_tot(:,:) = 0. ; pemp_ice(:,:) = 0. ; psprecip(:,:) = 0. 
Note: See TracChangeset for help on using the changeset viewer.