Ignore:
Timestamp:
Jan 7, 2022, 8:27:58 AM (3 years ago)
Author:
emillour
Message:

Generic GCM:
Minor bug fix for the (rather specific) case when there is no surface and
inertiedat() is not defined.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r2595 r2603  
    4848      use time_phylmdz_mod, only: daysec
    4949      use callkeys_mod, only: albedo_spectral_mode, calladj, calldifv, &
    50                               calllott_nonoro, callrad, callsoil, callstats, &
     50                              calllott_nonoro, callrad, callsoil, nosurf, &
     51                              callstats, &
    5152                              calltherm, CLFvarying, co2cond, corrk, diagdtau, &
    5253                              diurnal, enertest, fat1au, flatten, j2, &
     
    633634         
    634635           rnat(:)=1.
    635            do ig=1,ngrid
     636           if (.not.nosurf) then ! inertiedat only defined if there is a surface
     637            do ig=1,ngrid
    636638              if(inertiedat(ig,1).gt.1.E4)then
    637639                 rnat(ig)=0
    638640              endif
    639            enddo
    640 
    641            print*,'WARNING! Surface type currently decided by surface inertia'
    642            print*,'This should be improved e.g. in newstart.F'
    643            
     641            enddo
     642
     643            print*,'WARNING! Surface type currently decided by surface inertia'
     644            print*,'This should be improved e.g. in newstart.F'
     645           endif
    644646         endif ! end of 'ok_slab_ocean'.
    645647
Note: See TracChangeset for help on using the changeset viewer.