Ignore:
Timestamp:
Apr 12, 2016, 10:00:36 AM (9 years ago)
Author:
Ehouarn Millour
Message:

Fix to handle cases when q_ancien, t_ancien, etc. contain
dummy (constant) fields, as is the case when startphy.nc is
generated by ce0l or iniaqua: even though the fields are
present, they should not be used to compute corresponding
dynamical tendencies (done in physiq) for the first physics step.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/phyetat0.F90

    r2399 r2494  
    327327  ancien_ok=ancien_ok.AND.phyetat0_get(klev,v_ancien,"VANCIEN","VANCIEN",0.)
    328328
     329  ! Ehouarn: addtional tests to check if t_ancien, q_ancien contain
     330  !          dummy values (as is the case when generated by ce0l,
     331  !          or by iniaqua)
     332  if ( (maxval(q_ancien).eq.minval(q_ancien)) .or. &
     333       (maxval(t_ancien).eq.minval(t_ancien)) ) then
     334    ancien_ok=.false.
     335  endif
     336
    329337  found=phyetat0_get(klev,clwcon,"CLWCON","CLWCON",0.)
    330338  found=phyetat0_get(klev,rnebcon,"RNEBCON","RNEBCON",0.)
Note: See TracChangeset for help on using the changeset viewer.