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 6651 – NEMO

Changeset 6651


Ignore:
Timestamp:
2016-06-01T17:04:33+02:00 (8 years ago)
Author:
frrh
Message:

Add syntax bug fix to non-CICE meltponds case.

Add CPP controls to prevent references to undefined fields
when CICE is not included in the compilation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_coupling_GSI7_GSI8_landice_bitcomp/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r6363 r6651  
    734734      END SELECT 
    735735#else 
    736       IF( TRIM( sn_snd_mpnd%cldes /= 'none' ) THEN 
     736      IF( TRIM( sn_snd_mpnd%cldes ) /= 'none' ) THEN 
    737737         CALL ctl_stop('Meltponds can only be used with CICEv5') 
    738738      ENDIF 
     
    21152115      ENDIF 
    21162116      ! 
     2117#if defined key_cice && ! defined key_cice4 
    21172118      ! Send meltpond fields  
    21182119      IF( ssnd(jps_a_p)%laction .OR. ssnd(jps_ht_p)%laction ) THEN 
     
    21572158         IF( ssnd(jps_kice)%laction )   CALL cpl_snd( jps_kice, isec, ztmp3, info ) 
    21582159      ENDIF 
     2160#endif 
    21592161      ! 
    21602162      ! 
     
    23382340      IF( ssnd(jps_taum  )%laction )  CALL cpl_snd( jps_taum  , isec, RESHAPE ( taum, (/jpi,jpj,1/) ), info ) 
    23392341       
     2342#if defined key_cice 
    23402343      ztmp1(:,:) = sstfrz(:,:) + rt0 
    23412344      IF( ssnd(jps_sstfrz)%laction )  CALL cpl_snd( jps_sstfrz, isec, RESHAPE ( ztmp1, (/jpi,jpj,1/) ), info ) 
     2345#endif 
    23422346      ! 
    23432347      CALL wrk_dealloc( jpi,jpj, zfr_l, ztmp1, ztmp2, zotx1, zoty1, zotz1, zitx1, zity1, zitz1 ) 
Note: See TracChangeset for help on using the changeset viewer.