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 2617 for branches – NEMO

Changeset 2617 for branches


Ignore:
Timestamp:
2011-02-26T11:34:33+01:00 (13 years ago)
Author:
gm
Message:

dynamic mem: #785 ; zdfbfr allocation in zdf_bfr_init

Location:
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfbfr.F90

    r2616 r2617  
    2828   PUBLIC   zdf_bfr         ! called by step.F90 
    2929   PUBLIC   zdf_bfr_init    ! called by opa.F90 
    30    PUBLIC   zdf_bfr_alloc   ! called by nemogcm.F90 
    3130 
    3231   !                                    !!* Namelist nambfr: bottom friction namelist * 
     
    3938    
    4039   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::  bfrcoef2d   ! 2D bottom drag coefficient 
    41                                                                ! Now initialised in zdf_bfr_alloc() 
     40 
    4241   !! * Substitutions 
    4342#  include "vectopt_loop_substitute.h90" 
     
    155154      IF(lwp) WRITE(numout,*) '   Namelist nam_bfr : set bottom friction parameters' 
    156155 
     156      !                              ! allocate zdfbfr arrays 
     157      IF( zdf_bfr_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'zdf_bfr_init : unable to allocate arrays' ) 
     158 
    157159      SELECT CASE (nn_bfr) 
    158  
     160      ! 
    159161      CASE( 0 ) 
    160162         IF(lwp) WRITE(numout,*) '      free-slip ' 
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r2616 r2617  
    558558#endif 
    559559      USE wrk_nemo,     ONLY: wrk_alloc 
    560       USE zdfbfr,       ONLY: zdf_bfr_alloc 
    561560 
    562561      INTEGER :: ierr 
     
    658657#endif 
    659658      ierr = ierr + wrk_alloc() 
    660       ierr = ierr + zdf_bfr_alloc() 
    661659 
    662660      IF( lk_mpp    )   CALL mpp_sum( ierr ) 
Note: See TracChangeset for help on using the changeset viewer.