Changeset 273


Ignore:
Timestamp:
09/18/14 14:54:39 (10 years ago)
Author:
millour
Message:

Bug correction in the initialization of specific gas constant in Saturn physics.
EM

Location:
codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/inifis.F

    r227 r273  
    8888      r=pr 
    8989      rcp=r/cpp 
     90      ! Ehouarn debug: 
     91      write(*,*) "inifis: rad=",rad 
     92      write(*,*) "        daysec=",daysec 
     93      write(*,*) "        dtphys=",dtphys 
     94      write(*,*) "        cpp=",cpp 
     95      write(*,*) "        g=",g 
     96      write(*,*) "        r=",r 
     97      write(*,*) "        rcp=",rcp 
    9098 
    9199      avocado = 6.02214179e23   ! added by RW 
     
    645653               STOP 
    646654           ELSE 
    647                write(*,*) "mugaz=",mugaz 
     655               write(*,*) "inifis: mugaz=",mugaz 
    648656           ENDIF 
     657           !Ehouarn: once mugaz has been set, r, the specific 
     658           ! gas constant must be computed 
     659           r=8.3144622/(mugaz*1.e-3) 
     660           write(*,*) "inifis: r=",r 
     661            
    649662           cpp = -99999. 
    650663           PRINT *,'SPECIFIC HEAT CAPACITY in J K-1 kg-1 ?' 
     
    654667               STOP 
    655668           ELSE 
    656                write(*,*) "cpp=",cpp 
     669               write(*,*) "inifis: cpp=",cpp 
    657670           ENDIF 
    658671!         else 
  • codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/tabfi.F

    r270 r273  
    104104        g=10.44 
    105105        call getin_p("g",g) 
    106         !mugaz=2.34 !EM: does not give cpp=11500 
     106        !mugaz=2.34 !EM: does not give cpp=11500) 
    107107        mugaz=2.53 ! with this value of mugaz, cpp=11500 
    108108        call getin_p("mugaz",mugaz) 
     109        ! recompute r=R/mugaz to be consitent 
     110        r=8.3144621/(mugaz*1.e-3) 
    109111        ! kappa 
    110112        rcp=0.2857143 
    111113        call getin_p("kappa",rcp) 
    112         cpp=(8.314511/(mugaz/1000.0))/rcp 
     114        cpp=(8.3144621/(mugaz/1000.0))/rcp 
    113115        call getin_p("cpp",cpp) 
    114116!        write(*,*) "tabfi: cpp=",cpp 
     
    122124        ! Orbital parameters 
    123125        periastr=9.02151966094971 
     126        call getin_p("periastron",periastr) 
    124127        apoastr=10.054479598999 
     128        call getin_p("apoastron",apoastr) 
    125129        peri_day=19280 
     130        call getin_p("periastron_day",peri_day) 
    126131        obliquit=26.7299995422363 
    127         ! Other parameters some physical paréametrizations need 
     132        call getin_p("obliquity",obliquit) 
     133        ! Other parameters some physical parametrizations need 
    128134        z0=1e-2 
    129135        lmixmin=30 
Note: See TracChangeset for help on using the changeset viewer.