Changeset 1958 for trunk/LMDZ.TITAN/libf/chimtitan
- Timestamp:
- Jul 3, 2018, 12:50:23 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/chimtitan/gptitan.c
r1956 r1958 12 12 char CORPS[][10], double Y[][NLEV], 13 13 double *FIN, double *LAT, double *MASS, double MD[][NLEV], 14 double *KEDD, double *botCH4, double *fluxCH4, doubleKRATE[][NLEV],14 double *KEDD, double KRATE[][NLEV], 15 15 int reactif[][5], int *nom_prod, int *nom_perte, 16 16 int prod[][200], int perte[][200][2], int *aerprod, int *utilaer, … … 22 22 int i,j,k,l; 23 23 int ireac,ncom1,ncom2; 24 int in2, i ch4, ih, ih2, in4s;24 int in2, ih, ih2, in4s; 25 25 double ***a,***b,**c; 26 26 double *fl,*fp,*mu,**jac,**ym1,**f; 27 double dyCH4surf;28 27 double conv,delta,deltamax; 29 28 double cm,cp,dim,dip,dm,dp,dym,dyp,km,kp,r,dra,dram,drap; … … 100 99 for( i = 0; i <= ST-1; i++ ) 101 100 { 102 if( strcmp(corps[i], "CH4") == 0 ) ich4 = i;103 101 if( strcmp(corps[i], "H" ) == 0 ) ih = i; 104 102 if( strcmp(corps[i], "H2" ) == 0 ) ih2 = i; … … 107 105 } 108 106 109 /* initialisation mu , CH4 au sol*/107 /* initialisation mu */ 110 108 111 109 for( j = 0; j <= NLEV-1; j++ ) … … 114 112 for( i = 0; i <= ST-1; i++ ) 115 113 { 116 if( ( i == ich4 ) && ( Y[i][j] <= *botCH4 ) && ( j == 0 ) )117 {118 dyCH4surf = (*botCH4 - Y[i][j]);119 Y[i][j] = *botCH4;120 }121 114 mu[j] += ( MASS[i] * Y[i][j] ); 122 115 } … … 789 782 /* end inversion by blocs: */ 790 783 791 /* CH4 au sol */792 /* ---------- */793 if( Y[ich4][0] < *botCH4 )794 {795 dyCH4surf += (*botCH4 - Y[ich4][0]*10.0e0);796 Y[ich4][0] = *botCH4;797 }798 799 784 /* ------------------ */ 800 785 /* Tests et evolution */ … … 888 873 /* ------------ */ 889 874 890 *fluxCH4=dyCH4surf;891 892 875 for( j = 0; j <= NLEV-1; j++ ) 893 876 {
Note: See TracChangeset
for help on using the changeset viewer.