Changeset 359


Ignore:
Timestamp:
09/08/15 15:22:15 (9 years ago)
Author:
dubos
Message:

Fix Held&Suarez when nqtot<3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/etat0_heldsz.f90

    r347 r359  
    8989       CALL compute_etat0_heldsz(theta_eq,theta) 
    9090       CALL compute_theta2theta_rhodz(ps,theta,theta_rhodz,1) 
    91        q=f_q(ind) 
    92        q(:,:,1)=1e-2 
    93        q(:,:,2)=0 
    94        q(:,:,3:)=1e-2 
     91       IF(nqtot>0) THEN 
     92          q=f_q(ind) 
     93          q(:,:,1)=1e-2 
     94          IF(nqtot>1) q(:,:,2)=0 
     95          IF(nqtot>2) q(:,:,3:)=1e-2 
     96       END IF 
    9597    ENDDO 
    9698  END SUBROUTINE etat0 
Note: See TracChangeset for help on using the changeset viewer.