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 2690 for branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90 – NEMO

Ignore:
Timestamp:
2011-03-15T16:27:46+01:00 (13 years ago)
Author:
gm
Message:

dynamic mem: #785 ; homogeneization of the coding style associated with dyn allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90

    r2620 r2690  
    3232   USE dom_oce                      ! ocean space and time domain 
    3333   USE in_out_manager               ! I/O manager 
    34    USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
     34   USE lbclnk                       ! ocean lateral boundary conditions (or mpp link) 
    3535 
    3636   IMPLICIT NONE 
    3737   PRIVATE 
    3838 
    39    PUBLIC cpl_prism_init 
    40    PUBLIC cpl_prism_define 
    41    PUBLIC cpl_prism_snd 
    42    PUBLIC cpl_prism_rcv 
    43    PUBLIC cpl_prism_freq 
    44    PUBLIC cpl_prism_finalize 
    45  
    46    LOGICAL, PUBLIC, PARAMETER :: lk_cpl = .TRUE.   !: coupled flag 
    47    INTEGER, PUBLIC            :: OASIS_Rcv  = 1    !: return code if received field 
    48    INTEGER, PUBLIC            :: OASIS_idle = 0    !: return code if nothing done by oasis 
    49    INTEGER                    :: ncomp_id          ! id returned by prism_init_comp 
    50    INTEGER                    :: nerror            ! return error code 
    51  
    52    INTEGER, PARAMETER :: nmaxfld=40    ! Maximum number of coupling fields 
     39   PUBLIC   cpl_prism_init 
     40   PUBLIC   cpl_prism_define 
     41   PUBLIC   cpl_prism_snd 
     42   PUBLIC   cpl_prism_rcv 
     43   PUBLIC   cpl_prism_freq 
     44   PUBLIC   cpl_prism_finalize 
     45 
     46   LOGICAL, PUBLIC, PARAMETER ::   lk_cpl = .TRUE.   !: coupled flag 
     47   INTEGER, PUBLIC            ::   OASIS_Rcv  = 1    !: return code if received field 
     48   INTEGER, PUBLIC            ::   OASIS_idle = 0    !: return code if nothing done by oasis 
     49   INTEGER                    ::   ncomp_id          ! id returned by prism_init_comp 
     50   INTEGER                    ::   nerror            ! return error code 
     51 
     52   INTEGER, PARAMETER ::   nmaxfld=40    ! Maximum number of coupling fields 
    5353    
    5454   TYPE, PUBLIC ::   FLD_CPL            !: Type for coupling field information 
     
    6060   END TYPE FLD_CPL 
    6161 
    62    TYPE(FLD_CPL), DIMENSION(nmaxfld), PUBLIC :: srcv, ssnd   !: Coupling fields 
    63  
    64    REAL(wp), DIMENSION(:,:), ALLOCATABLE :: exfld  ! Temporary buffer for receiving 
     62   TYPE(FLD_CPL), DIMENSION(nmaxfld), PUBLIC ::   srcv, ssnd   !: Coupling fields 
     63 
     64   REAL(wp), DIMENSION(:,:), ALLOCATABLE ::   exfld   ! Temporary buffer for receiving 
    6565 
    6666   !!---------------------------------------------------------------------- 
     
    243243      INTEGER                 , INTENT(  out) ::   kinfo     ! OASIS3 info argument 
    244244      !! 
    245       LOGICAL                :: llaction 
     245      LOGICAL ::  llaction 
    246246      !!-------------------------------------------------------------------- 
    247247      ! 
     
    284284 
    285285 
    286    FUNCTION cpl_prism_freq( kid )   
     286   INTEGER FUNCTION cpl_prism_freq( kid )   
    287287      !!--------------------------------------------------------------------- 
    288288      !!              ***  ROUTINE cpl_prism_freq  *** 
     
    290290      !! ** Purpose : - send back the coupling frequency for a particular field 
    291291      !!---------------------------------------------------------------------- 
    292       INTEGER,INTENT( IN )   :: kid              ! variable index  
    293       INTEGER                :: cpl_prism_freq   ! coupling frequency 
     292      INTEGER,INTENT(in) ::   kid   ! variable index  
    294293      !!---------------------------------------------------------------------- 
    295294      cpl_prism_freq = ig_def_freq( kid ) 
     
    307306      !!---------------------------------------------------------------------- 
    308307      ! 
    309       DEALLOCATE(exfld) 
    310       CALL prism_terminate_proto ( nerror )          
     308      DEALLOCATE( exfld ) 
     309      CALL prism_terminate_proto( nerror )          
    311310      ! 
    312311   END SUBROUTINE cpl_prism_finalize 
Note: See TracChangeset for help on using the changeset viewer.