Changeset 1908 for trunk/LMDZ.TITAN/libf/chimtitan
- Timestamp:
- Mar 8, 2018, 5:16:35 PM (7 years ago)
- Location:
- trunk/LMDZ.TITAN/libf/chimtitan
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/chimtitan/gptitan.c
r1126 r1908 1 1 /* gptitan: photochimie */ 2 2 /* GCCM */ 3 4 /* tout est passe en simple precision */5 /* sauf pour l'inversion de la matrice */6 3 7 4 /* nitriles et hydrocarbures separes pour l'inversion */ … … 14 11 double *RA, double *TEMP, double *NB, 15 12 char CORPS[][10], double Y[][NLEV], 16 double *FIN, int*LAT, double *MASS, double MD[][NLEV],13 double *FIN, double *LAT, double *MASS, double MD[][NLEV], 17 14 double *KEDD, double *botCH4, double KRATE[][NLEV], 18 15 int reactif[][5], int *nom_prod, int *nom_perte, … … 53 50 54 51 /* DEBUG */ 55 printf("CHIMIE: lat=% d\n",(*LAT)+1);52 printf("CHIMIE: lat=%g\n",(*LAT)); 56 53 /**/ 57 54 … … 65 62 strcat( outlog, ".log" ); 66 63 out = fopen( outlog, "w" ); 67 fprintf(out,"CHIMIE: lat=% d\n",(*LAT)+1);64 fprintf(out,"CHIMIE: lat=%g\n",(*LAT)); 68 65 fclose( out ); 69 66 … … 79 76 /* DEBUG 80 77 out = fopen( outlog, "a" ); 81 fprintf(out,"CHIMIE: lat=% d\n",(*LAT)+1);78 fprintf(out,"CHIMIE: lat=%g\n",(*LAT)); 82 79 fclose( out ); 83 80 */ … … 236 233 } 237 234 /* DEBUG 238 printf("AERPROD : LAT = % d- J = %d\n",(*LAT),j);235 printf("AERPROD : LAT = %g - J = %d\n",(*LAT),j); 239 236 if(fabs(dyc2h2*NB[j])>fabs(fp[utilaer[2]]/10.)) 240 237 printf("fp(%s) =%e; dyc2h2 =%e\n",corps[utilaer[2]], … … 286 283 287 284 /* DEBUG 288 printf("HTOH2 : LAT = % d- J = %d\n",(*LAT),j);285 printf("HTOH2 : LAT = %g - J = %d\n",(*LAT),j); 289 286 if(fabs(dyh*NB[j])>fabs(fp[utilaer[0]]/10.)) 290 287 printf("fp(%s) = %e; dyh = %e\n",corps[utilaer[0]],fp[utilaer[0]],dyh*NB[j]); … … 511 508 { 512 509 out = fopen( outlog, "a" ); 513 fprintf( out, "Lat no %d;", (*LAT)+1);510 fprintf( out, "Latitude %g;", (*LAT)); 514 511 fprintf(out, " alt:%e; %s %e %e ; %e %e\n",(RA[j]-R0),corps[i],ym1[i],Y[i][j],time,delta); 515 512 fclose( out ); … … 666 663 } 667 664 /* DEBUG 668 printf("AERPROD : LAT = % d- J = %d\n",(*LAT),j);665 printf("AERPROD : LAT = %g - J = %d\n",(*LAT),j); 669 666 if(fabs(dyc2h2*NB[j])>fabs(fp[utilaer[2]]/10.)) 670 667 printf("fp(%s) =%e; dyc2h2 =%e\n",corps[utilaer[2]], … … 716 713 717 714 /* DEBUG 718 printf("HTOH2 : LAT = % d- J = %d\n",(*LAT),j);715 printf("HTOH2 : LAT = %g - J = %d\n",(*LAT),j); 719 716 if(fabs(dyh*NB[j])>fabs(fp[utilaer[0]]/10.)) 720 717 printf("fp(%s) = %e; dyh = %e\n",corps[utilaer[0]],fp[utilaer[0]],dyh*NB[j]); … … 810 807 { 811 808 out = fopen( outlog, "a" ); 812 fprintf( out, "Lat no %d; declin:%e;", (*LAT)+1, (*DECLIN) );809 fprintf( out, "Latitude: %g; declin:%e;", (*LAT), (*DECLIN) ); 813 810 fprintf(out, " alt:%e; %s %e %e ; %e %e\n",(RA[j]-R0),corps[i],ym1[i],Y[i][j],time,delta); 814 811 fclose( out ); -
trunk/LMDZ.TITAN/libf/chimtitan/titan.h
r1126 r1908 7 7 8 8 #define R0 (double)(2575.0) /* Titan's radius */ 9 #define NLEV (int)(1 25) /* Nbre de niv verticaux - =llm+70 dans common_mod*/10 #define NLD (int)(40) /* Nbre de niv verticaux faits sans diff */9 #define NLEV (int)(133) /* Nbre de niv verticaux - =llm+70 dans common_mod -> Need to be coherent with the vertical grid used !! */ 10 #define NLD (int)(40) /* Nbre de niv verticaux faits sans diff -> Need to be coherent with the vertical grid used !! */ 11 11 #define NLRT (int)(650) /* Nbre de niv verticaux dans table fmoy - aussi dans common_mod */ 12 12
Note: See TracChangeset
for help on using the changeset viewer.