Changeset 13501


Ignore:
Timestamp:
2020-09-22T18:43:06+02:00 (5 months ago)
Author:
gsamson
Message:

define default value (=0.) for sbc ABL hpgi and hpgj fields when 'not used'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/SBC/sbcblk.F90

    r13472 r13501  
    294294            ELSEIF( jfpr == jp_prec .OR. jfpr == jp_snow .OR. jfpr == jp_uoatm .OR. jfpr == jp_voatm ) THEN 
    295295               sf(jfpr)%fnow(:,:,1:ipka) = 0._wp        ! no precip or no snow or no surface currents 
    296             ELSEIF( ( jfpr == jp_hpgi .OR. jfpr == jp_hpgj ) .AND. .NOT. ln_abl ) THEN 
    297                DEALLOCATE( sf(jfpr)%fnow )              ! deallocate as not used in this case 
     296            ELSEIF( jfpr == jp_hpgi .OR. jfpr == jp_hpgj ) THEN 
     297               IF( .NOT. ln_abl ) THEN 
     298                  DEALLOCATE( sf(jfpr)%fnow )   ! deallocate as not used in this case 
     299               ELSE 
     300                  sf(jfpr)%fnow(:,:,1:ipka) = 0._wp 
     301               ENDIF 
    298302            ELSEIF( jfpr == jp_cc  ) THEN 
    299303               sf(jp_cc)%fnow(:,:,1:ipka) = pp_cldf 
Note: See TracChangeset for help on using the changeset viewer.