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 19 for trunk/NEMO/OPA_SRC/SBC/ocesbc.F90 – NEMO

Ignore:
Timestamp:
2004-02-17T09:36:55+01:00 (20 years ago)
Author:
opalod
Message:

CT : BUGFIX003 : Compilation error is solved

File:
1 edited

Legend:

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

    r3 r19  
    1414   USE ice_oce 
    1515   USE blk_oce 
     16   USE flx_oce 
    1617   USE phycst         ! Define parameters for the routines 
    1718   USE taumod 
     
    2324   USE ocfzpt 
    2425   USE lbclnk 
     26   USE lib_mpp 
    2527   USE in_out_manager ! I/O manager 
    2628 
     
    3335   !! * Shared module variables 
    3436   REAL(wp), PUBLIC ::   & 
    35       aplus, aminus,     & 
    36       empold = 0.e0  ! current year freshwater budget correction 
     37      aplus, aminus,     &  !: 
     38      empold = 0.e0         !: current year freshwater budget correction 
    3739   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   & 
    38       qt  ,         &  ! total surface heat flux (w/m2) 
    39       q   ,         &  ! surface heat flux (w/m2) 
    40       qsr ,         &  ! solar radiation (w/m2) 
    41       emp ,         &  ! evaporation minus precipitation (kg/m2/s = mm/s) 
    42       emps,         &  ! evaporation - precipitation (free surface) 
    43       qrp ,         &  ! heat flux damping (w/m2) 
    44       erp              ! evaporation damping (kg/m2/s = mm/s) 
     40      qt  ,         &  !: total surface heat flux (w/m2) 
     41      q   ,         &  !: surface heat flux (w/m2) 
     42      qsr ,         &  !: solar radiation (w/m2) 
     43      emp ,         &  !: evaporation minus precipitation (kg/m2/s = mm/s) 
     44      emps,         &  !: evaporation - precipitation (free surface) 
     45      qrp ,         &  !: heat flux damping (w/m2) 
     46      erp              !: evaporation damping (kg/m2/s = mm/s) 
    4547#if defined key_dynspg_fsc 
    46    REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   & 
    47       dmp              ! internal dampind term 
     48   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &  !: 
     49      dmp              !: internal dampind term 
    4850#endif 
    4951 
     
    188190 
    189191      !! * Local declarations 
    190       INTEGER ::   ji, jj                   ! dummy loop indices 
    191       REAL ztx, ztaux, zty, ztauy 
     192      INTEGER  ::   ji, jj                   ! dummy loop indices 
     193      REAL(wp) ::  ztx, ztaux, zty, ztauy 
    192194      !!---------------------------------------------------------------------- 
    193195 
     
    609611 
    610612         runoff(:,:) = 0.e0 
    611      ENDIF 
    612  
    613   END SUBROUTINE oce_sbc 
     613      ENDIF 
     614 
     615   END SUBROUTINE oce_sbc 
    614616 
    615617# endif 
    616618#endif 
    617619 
     620#if defined key_dtasal 
     621   !!---------------------------------------------------------------------- 
     622   !!   'key_dtasal'                                          salinity data 
     623   !!---------------------------------------------------------------------- 
    618624   SUBROUTINE oce_sbc_dmp 
    619625      !!--------------------------------------------------------------------- 
    620       !!                   ***    ROUTINE oce_sbc_dmp *** 
     626      !!                   ***  ROUTINE oce_sbc_dmp *** 
    621627      !!                     
    622628      !! ** Purpose : Computation of internal and evaporation damping terms  
     
    624630      !! 
    625631      !! History : 
    626       !!   1.0  !  99-11  (M. Imbard)  Original code 
    627       !!        !  01-03  (D. Ludicone, E. Durand, G. Madec) free surf. 
    628       !!   2.0  !  02-09  (G. Madec, C. Ethe)  F90: Free form and module 
     632      !!   9.0  !  04-01  (G. Madec, C. Ethe)  Original code 
    629633      !!---------------------------------------------------------------------- 
    630634      !! * Local declarations 
    631635      INTEGER ::   ji, jj                   ! dummy loop indices 
    632636      REAL(wp), DIMENSION(jpi,jpj)  :: zsss, zfreeze 
     637      REAL(wp) ::   zerp, ztrp, zsrp 
    633638#if defined key_dynspg_fsc 
    634       REAL zwei, zerp, ztrp, zsrp 
    635       REAL zerpplus(jpi,jpj), zerpminus(jpi,jpj) 
    636       REAL zplus, zminus, zadefi 
     639      REAL(wp) ::   zwei 
     640      REAL(wp) ::  zerpplus(jpi,jpj), zerpminus(jpi,jpj) 
     641      REAL(wp) ::  zplus, zminus, zadefi 
    637642# if defined key_tradmp 
    638643      INTEGER jk 
     
    712717         END DO 
    713718      END DO 
    714 # if defined key_mpp 
    715       CALL mpp_sum( aplus  )   ! mpp: sum over all the global domain 
    716       CALL mpp_sum( aminus ) 
    717 # endif 
     719      IF( lk_mpp )   CALL mpp_sum( aplus  )   ! sums over the global domain 
     720      IF( lk_mpp )   CALL mpp_sum( aminus ) 
    718721      IF( l_ctl .AND. lwp ) WRITE(numout,*) ' oce_sbc_dmp : a+ = ', aplus, ' a- = ', aminus 
    719722 
     
    734737   END SUBROUTINE oce_sbc_dmp 
    735738 
     739#else 
     740   !!---------------------------------------------------------------------- 
     741   !!   Dummy routine                                      NO salinity data 
     742   !!---------------------------------------------------------------------- 
     743   SUBROUTINE oce_sbc_dmp         ! Dummy routine 
     744      WRITE(*,*) 'oce_sbc_dmp: you should not have seen that print! error?' 
     745   END SUBROUTINE oce_sbc_dmp 
     746#endif 
     747 
    736748   !!====================================================================== 
    737749END MODULE ocesbc 
Note: See TracChangeset for help on using the changeset viewer.