Changeset 2950


Ignore:
Timestamp:
Apr 27, 2023, 11:14:41 AM (19 months ago)
Author:
evos
Message:

updating evol_h2o_ice_routine to handle 1D cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/evol_h2o_ice_s_mod_slope.F90

    r2939 r2950  
    4242  pos_tend=0.
    4343  neg_tend=0.
    44 
     44if (ngrid.NE.1) then ! to make sure we are not in 1D
    4545  do i=1,ngrid
    4646     do islope=1,nslope
     
    5454     enddo
    5555  enddo
    56 
    57   if(neg_tend.GT.pos_tend .and. pos_tend.GT.0) then
     56   if(neg_tend.GT.pos_tend .and. pos_tend.GT.0) then
    5857     do i=1,ngrid
    5958       do islope=1,nslope
     
    6564       enddo
    6665     enddo
    67   elseif(neg_tend.LT.pos_tend .and. neg_tend.GT.0) then
     66   elseif(neg_tend.LT.pos_tend .and. neg_tend.GT.0) then
    6867     do i=1,ngrid
    6968       do islope=1,nslope
     
    7574       enddo
    7675     enddo
    77   elseif(pos_tend.EQ.0 .OR. neg_tend.EQ.0) then
     76   elseif(pos_tend.EQ.0 .OR. neg_tend.EQ.0) then
    7877    print *, "Reason of stopping : There is either no water ice sublimating or no water ice increasing !!"
    7978    print *, "Tendencies on ice sublimating=", neg_tend
     
    8685       enddo
    8786    enddo
     87   endif
    8888  endif
    89 
    9089  negative_part = 0.
    9190
     
    115114    enddo
    116115  enddo
    117 
    118 
     116else ! ngrid==1;
     117        qsurf(i,islope)=qsurf(i,islope)+new_tendencies(i,islope)*dt_pem
     118endif
    119119
    120120END SUBROUTINE evol_h2o_ice_s_slope
Note: See TracChangeset for help on using the changeset viewer.