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 2715 for trunk/NEMOGCM/NEMO/OPA_SRC/OBC/obcini.F90 – NEMO

Ignore:
Timestamp:
2011-03-30T17:58:35+02:00 (13 years ago)
Author:
rblod
Message:

First attempt to put dynamic allocation on the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/OBC/obcini.F90

    r2565 r2715  
    1818   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    1919   USE phycst          ! physical constants 
    20    USE obc_oce         ! ocean open boundary conditions 
    21    USE lib_mpp         ! for mpp_sum 
     20   USE obc_oce         ! open boundary condition: ocean 
     21   USE obcdta          ! open boundary condition: data 
    2222   USE in_out_manager  ! I/O units 
     23   USE lib_mpp         ! MPP library 
    2324   USE dynspg_oce      ! flag lk_dynspg_flt 
    2425 
     
    3334   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    3435   !! $Id$  
    35    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     36   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    3637   !!---------------------------------------------------------------------- 
    37  
    3838CONTAINS 
    3939    
     
    8181      rdpnob   = rn_dpnob 
    8282      volemp   = rn_volemp 
    83        
    84  
     83 
     84      !                              ! allocate obc arrays 
     85      IF( obc_oce_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'obc_init : unable to allocate obc_oce arrays' ) 
     86      IF( obc_dta_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'obc_init : unable to allocate obc_dta arrays' ) 
    8587 
    8688      ! By security we set rdpxin and rdpxob respectively to 1. and 15. if the corresponding OBC is not activated 
Note: See TracChangeset for help on using the changeset viewer.