Ignore:
Timestamp:
Sep 5, 2011, 5:52:58 PM (13 years ago)
Author:
aslmd
Message:

LMDZ.MARS and MESOSCALE: minor modification when printing diagnostics for (slightly) negative tracers. this is now only done if it is the case for the local quantity computed by thermals routines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/thermcell_dqupdown.F90

    r256 r278  
    210210
    211211            if ((qa(ig,k).lt.0.) .and. (charvar .ne. 'momentum')) then
    212                  print*,'qa<0!!!',charvar,ig,k,fm0(ig,k),qa(ig,k-1),entr0(ig,k),q(ig,k),fm0(ig,k+1),detr0(ig,k)
    213                  print*,'---------> Cancelling qa'
    214                  qa(ig,k)=q(ig,k)
     212                 if ((q(ig,k) .gt. 0.) .and. ( q(ig,k) .gt. 1.e-15 )) then
     213                   !! only print if it is the thermal scheme which makes qa<0
     214                   print*,'qa<0 created by thermals!!!',charvar,ig,k,fm0(ig,k),qa(ig,k-1),entr0(ig,k),q(ig,k),fm0(ig,k+1),detr0(ig,k)
     215                   print*,'---------> Cancelling qa'
     216                 endif
     217                 qa(ig,k)=q(ig,k)  !! no action of thermals in this case.
    215218            endif
    216219            else
Note: See TracChangeset for help on using the changeset viewer.