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/SBC/sbcice_if.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/SBC/sbcice_if.F90

    r2528 r2715  
    1919   USE iom             ! I/O manager library 
    2020   USE in_out_manager  ! I/O manager 
     21   USE lib_mpp         ! MPP library 
    2122 
    2223   IMPLICIT NONE 
     
    3233   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    3334   !! $Id$ 
    34    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     35   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    3536   !!---------------------------------------------------------------------- 
    36  
    3737CONTAINS 
    3838 
     
    5353      !!                fr_i       : update the ice fraction 
    5454      !!--------------------------------------------------------------------- 
    55       INTEGER, INTENT(in)          ::   kt         ! ocean time step 
     55      INTEGER, INTENT(in) ::   kt   ! ocean time step 
    5656      ! 
    5757      INTEGER  ::   ji, jj     ! dummy loop indices 
     
    7878 
    7979         ALLOCATE( sf_ice(1), STAT=ierror ) 
    80          IF( ierror > 0 ) THEN 
    81             CALL ctl_stop( 'sbc_ice_if: unable to allocate sf_ice structure' )   ;   RETURN 
    82          ENDIF 
     80         IF( ierror > 0 )   CALL ctl_stop( 'STOP', 'sbc_ice_if: unable to allocate sf_ice structure' ) 
    8381         ALLOCATE( sf_ice(1)%fnow(jpi,jpj,1) ) 
    84          IF( sn_ice%ln_tint ) ALLOCATE( sf_ice(1)%fdta(jpi,jpj,1,2) ) 
    85  
     82         IF( sn_ice%ln_tint )   ALLOCATE( sf_ice(1)%fdta(jpi,jpj,1,2) ) 
    8683 
    8784         ! fill sf_ice with sn_ice and control print 
Note: See TracChangeset for help on using the changeset viewer.