Ignore:
Timestamp:
07/10/14 11:28:31 (10 years ago)
Author:
ymipsl
Message:

Atmosphere scaleheight is not hard coded in disvert_std, and given in meters instead km
YM

File:
1 edited

Legend:

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

    r207 r208  
    3333  REAL(rstd),INTENT(OUT) :: presnivs(:) 
    3434   
    35   INTEGER,PARAMETER :: unit=42 
    3635  CHARACTER(len=255) :: filename 
    3736  INTEGER :: l,ok 
     
    6968    ! tell the world about it 
    7069    IF (is_mpi_root) THEN 
     70!$OMP MASTER 
    7171      WRITE(*,*) "ap()=",ap 
    7272      WRITE(*,*) "bp()=",bp 
    7373      WRITE(*,*) "Approximative mid-layer pressure, assuming a surface pressure preff=",preff," Pa" 
    74       WRITE(*,*) "and approximative mid-layer height, assuming an atmospheric scale height of ",scaleheight," (km)" 
     74      WRITE(*,*) "and approximative mid-layer height, assuming an atmospheric scale height of ",scaleheight/1000," (km)" 
    7575      DO l=1,llm 
    76         WRITE(*,*) 'PRESNIVS(',l,')=',presnivs(l),'  Z ~ ',log(preff/presnivs(l))*scaleheight,       & 
    77                    ' DZ ~ ',scaleheight*log((ap(l)+bp(l)*preff)/ max(ap(l+1)+bp(l+1)*preff,1.e-10)) 
     76        WRITE(*,*) 'PRESNIVS(',l,')=',presnivs(l),'  Z ~ ',log(preff/presnivs(l))*scaleheight/1000,       & 
     77                   ' DZ ~ ',scaleheight/1000*log((ap(l)+bp(l)*preff)/ max(ap(l+1)+bp(l+1)*preff,1.e-10)) 
    7878      ENDDO 
     79!$OMP END MASTER 
    7980    ENDIF 
    8081   
Note: See TracChangeset for help on using the changeset viewer.