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.
2011WP/2011Stream2/DynamicMemory_improvments (diff) – NEMO

Changes between Version 2 and Version 3 of 2011WP/2011Stream2/DynamicMemory_improvments


Ignore:
Timestamp:
2011-03-04T12:20:18+01:00 (13 years ago)
Author:
cetlod
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 2011WP/2011Stream2/DynamicMemory_improvments

    v2 v3  
    3939when a huge number of tracer is used (jptra> jpk) the model simply stop. This should be problematic with BFM for example... 
    4040Another solution should be found... 
     41At this stage we first use allocatable array within the routine. For example in zpshde.F90 
     42{{ 
     43      REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) ::   zti, ztj    ! interpolated value of tracer 
     44  
     45 
     46      ! Allocate workspaces whose dimension is > jpk 
     47      ALLOCATE( zti(jpi,jpj,kjpt) ) 
     48      ALLOCATE( ztj(jpi,jpj,kjpt) ) 
     49     
     50      -----bla, bla, bla----- 
     51 
     52      DEALLOCATE( zti ) 
     53      DEALLOCATE( ztj ) 
     54}} 
     55 
    4156  
    4257----