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 2125 for branches/DEV_r1784_3DF/NEMO/OPA_SRC/SBC/sbcblk_clio.F90 – NEMO

Ignore:
Timestamp:
2010-09-27T12:22:04+02:00 (14 years ago)
Author:
cbricaud
Message:

modification: don't allocate fdta arrays when time-interpollation is not used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r1784_3DF/NEMO/OPA_SRC/SBC/sbcblk_clio.F90

    r2051 r2125  
    129129         &                          sn_ccov, sn_tair, sn_prec 
    130130      !!--------------------------------------------------------------------- 
     131      write(narea+200,*)'clio : '; call flush(narea+200) 
    131132 
    132133      !                                         ! ====================== ! 
     
    160161            CALL ctl_stop( 'sbc_blk_clio: unable to allocate sf structure' )   ;   RETURN 
    161162         ENDIF 
    162  
    163163         DO ifpr= 1, jpfld 
    164164            ALLOCATE( sf(ifpr)%fnow(jpi,jpj,1) ) 
    165             ALLOCATE( sf(ifpr)%fdta(jpi,jpj,1,2) ) 
    166          END DO 
    167  
    168  
     165            IF( slf_i(ifpr)%ln_tint ) ALLOCATE( sf(ifpr)%fdta(jpi,jpj,1,2) ) 
     166         END DO 
    169167         ! fill sf with slf_i and control print 
    170168         CALL fld_fill( sf, slf_i, cn_dir, 'sbc_blk_clio', 'flux formulation for ocean surface boundary condition', 'namsbc_clio' ) 
Note: See TracChangeset for help on using the changeset viewer.