source: trunk/LMDZ.GENERIC/libf/phystd/cp_neutral.F90 @ 486

Last change on this file since 486 was 471, checked in by aslmd, 13 years ago

LMDZ.GENERIC

13/12/2011 == AS

  • Same spirit as previous commit, but for ngasmx which is now read in gases.def -- before arrays w/ dim ngasmx are allocated dynamically
  • Allocation is done in su_gases.F90 which is called in inifis
  • Outside su_gases.F90, very few modifications to the code : the new module "gases_h.F90" simply replaces the old common "gases.h" !
  • Compiles fine. Tested with debugging options through pgdbg. Runs fine. Exact same results in Early Mars test case.
  • Property svn:executable set to *
File size: 441 bytes
RevLine 
[305]1double precision function cp_neutral(T)
2
[471]3  use gases_h
4
[305]5  implicit none
6
7  ! inputs
8  double precision T
9
10
11  ! Cp_n : cf CO2 dans abe&matsui (1988)
12  !cp_neutral = (22.26+5.981d-2*T-3.501d-5*T**2+7.469d-9*T**3)/m_n
13
14  if(gnom(1).eq.'N2_')then
15     cp_neutral = 1040.0
16  elseif(gnom(1).eq.'H2_')then
17     cp_neutral = 14310.0
18  else
19     print*,'Gas not recognised in cp_neutral!'
20     call abort
21  endif
22
23 
24end function cp_neutral
25
26
27
28
29
30
31
32
33
Note: See TracBrowser for help on using the repository browser.