Changeset 471 for trunk/LMDZ.GENERIC
- Timestamp:
- Dec 13, 2011, 11:57:59 PM (13 years ago)
- Location:
- trunk/LMDZ.GENERIC
- Files:
-
- 1 added
- 1 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/README
r470 r471 565 565 M 469 libf/phystd/radinc_h.F90 566 566 M 469 libf/phystd/radcommon_h.F90 567 568 == 13/12/2011 == AS 569 - Same spirit as previous commit, but for ngasmx which is now read in gases.def -- before arrays w/ dim ngasmx are allocated dynamically 570 - Allocation is done in su_gases.F90 which is called in inifis 571 - Outside su_gases.F90, very few modifications to the code : the new module "gases_h.F90" simply replaces the old common "gases.h" ! 572 - Compiles fine. Tested with debugging options through pgdbg. Runs fine. Exact same results in Early Mars test case. -
trunk/LMDZ.GENERIC/libf/phystd/calc_cpp_mugaz.F90
r253 r471 13 13 !================================================================== 14 14 15 use gases_h 15 16 implicit none 16 17 17 18 #include "comcstfi.h" 18 19 !#include "callkeys.h" 19 #include "gases.h"20 20 21 21 integer igas -
trunk/LMDZ.GENERIC/libf/phystd/calc_rayleigh.F90
r305 r471 26 26 use radinc_h, only: L_NSPECTV 27 27 use radcommon_h, only: WAVEV, BWNV, DWNV, tstellar, tauray, scalep 28 use gases_h 28 29 29 30 implicit none … … 31 32 #include "comcstfi.h" 32 33 #include "callkeys.h" 33 #include "gases.h"34 34 35 35 real*8 wl -
trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90
r470 r471 13 13 use datafile_mod, only: datadir 14 14 use ioipsl_getincom 15 use gases_h 15 16 16 17 implicit none … … 35 36 #include "callkeys.h" 36 37 #include "tracer.h" 37 #include "gases.h"38 38 39 39 !----------------------------------------------------------------------- -
trunk/LMDZ.GENERIC/libf/phystd/condens_co2cloud.F90
r253 r471 7 7 8 8 use radinc_h, only : naerkind 9 use gases_h 9 10 10 11 implicit none … … 56 57 #include "callkeys.h" 57 58 #include "tracer.h" 58 #include "gases.h"59 59 60 60 !----------------------------------------------------------------------- -
trunk/LMDZ.GENERIC/libf/phystd/condense_cloud.F90
r305 r471 7 7 8 8 use radinc_h, only : naerkind 9 use gases_h 9 10 10 11 implicit none … … 56 57 #include "callkeys.h" 57 58 #include "tracer.h" 58 #include "gases.h"59 59 60 60 !----------------------------------------------------------------------- -
trunk/LMDZ.GENERIC/libf/phystd/cp_neutral.F90
r305 r471 1 1 double precision function cp_neutral(T) 2 2 3 use gases_h 4 3 5 implicit none 4 5 #include "gases.h"6 6 7 7 ! inputs -
trunk/LMDZ.GENERIC/libf/phystd/gradients_kcm.F90
r366 r471 2 2 3 3 use params_h 4 use gases_h 4 5 implicit none 5 6 #include "gases.h"7 6 8 7 ! inputs -
trunk/LMDZ.GENERIC/libf/phystd/kcmprof_fn.F90
r366 r471 3 3 use params_h 4 4 use watercommon_h, only : mH2O 5 use gases_h 5 6 implicit none 6 7 … … 15 16 #include "comcstfi.h" 16 17 #include "callkeys.h" 17 #include "gases.h"18 18 19 19 integer ilay, nlay -
trunk/LMDZ.GENERIC/libf/phystd/optci.F90
r305 r471 5 5 use radinc_h 6 6 use radcommon_h, only: gasi, tlimit, wrefVAR, Cmk,tgasref,pfgasref,wnoi,scalep 7 use gases_h 7 8 implicit none 8 9 … … 30 31 #include "comcstfi.h" 31 32 #include "callkeys.h" 32 #include "gases.h"33 33 34 34 -
trunk/LMDZ.GENERIC/libf/phystd/optcv.F90
r366 r471 5 5 use radinc_h 6 6 use radcommon_h, only: gasv, tlimit, wrefVAR, Cmk, tgasref, pfgasref,wnov,scalep 7 use gases_h 7 8 8 9 implicit none … … 36 37 #include "callkeys.h" 37 38 #include "comcstfi.h" 38 #include "gases.h"39 39 40 40 real*8 DTAUV(L_NLAYRAD,L_NSPECTV,L_NGAUSS) -
trunk/LMDZ.GENERIC/libf/phystd/physiq.F90
r470 r471 9 9 use radinc_h, only : naerkind 10 10 use watercommon_h, only : mx_eau_sol, To, RLVTT, mH2O 11 11 use gases_h 12 12 implicit none 13 13 … … 2147 2147 icount=icount+1 2148 2148 2149 !!! DEALLOCATE STUFF 2150 if (lastcall) then 2151 IF ( ALLOCATED( gnom ) ) DEALLOCATE( gnom ) !! this was allocated in su_gases.F90 2152 IF ( ALLOCATED( gfrac ) ) DEALLOCATE( gfrac ) !! this was allocated in su_gases.F90 2153 endif 2154 2155 2149 2156 return 2150 2157 end subroutine physiq -
trunk/LMDZ.GENERIC/libf/phystd/su_gases.F90
r368 r471 1 1 subroutine su_gases 2 3 use gases_h 2 4 3 5 implicit none 4 6 5 #include "gases.h" 6 7 integer ngas, igas, ierr 7 integer igas, ierr 8 8 9 9 !================================================================== … … 24 24 write(*,*) "sugases.F90: reading file gases.def" 25 25 read(90,*) 26 read(90,*,iostat=ierr) ngas 26 read(90,*,iostat=ierr) ngasmx 27 27 if (ierr.ne.0) then 28 28 write(*,*) "sugases.F90: error reading number of gases" … … 30 30 call abort 31 31 endif 32 ! check that the number of gases is indeed ngasmx33 if (ngas.ne.ngasmx) then34 write(*,*) "sugases.F90: error, wrong number of gases:"35 write(*,*) "ngas=",ngas," whereas ngasmx=",ngasmx36 write(*,*) "Check that the values in gases.def and gases.h match..."37 call abort38 endif39 32 40 do igas=1,ngas 33 PRINT *, "OK I HAVE ",ngasmx, " GASES. NOW I ALLOCATE ARRAYS AND READ NAMES AND FRAC." 34 35 IF ( .NOT. ALLOCATED( gnom ) ) ALLOCATE( gnom( ngasmx ) ) 36 do igas=1,ngasmx 41 37 read(90,*,iostat=ierr) gnom(igas) 42 38 if (ierr.ne.0) then … … 44 40 call abort 45 41 endif 46 enddo !of do igas=1,ngas 42 enddo !of do igas=1,ngasmx 47 43 48 44 vgas=0 49 do igas=1,ngas 45 IF ( .NOT. ALLOCATED( gfrac ) ) ALLOCATE( gfrac( ngasmx ) ) 46 do igas=1,ngasmx 50 47 read(90,*,iostat=ierr) gfrac(igas) 51 48 if (ierr.ne.0) then … … 65 62 endif 66 63 67 enddo !of do igas=1,ngas 64 enddo !of do igas=1,ngasmx 68 65 69 66 else -
trunk/LMDZ.GENERIC/libf/phystd/sugas_corrk.F90
r470 r471 24 24 use radcommon_h, only : wrefvar,gastype 25 25 use datafile_mod, only: datadir 26 use gases_h 26 27 implicit none 27 28 28 29 #include "callkeys.h" 29 #include "gases.h"30 30 31 31 !==================================================================
Note: See TracChangeset
for help on using the changeset viewer.