[3] | 1 | /* titan.h: parameters for gptitan.c */ |
---|
| 2 | |
---|
| 3 | #include <stdio.h> |
---|
| 4 | #include <stdlib.h> |
---|
| 5 | #include <string.h> |
---|
| 6 | #include <math.h> |
---|
| 7 | |
---|
| 8 | #define R0 (double)(2575.0) /* Titan's radius */ |
---|
[1126] | 9 | #define NLEV (int)(125) /* Nbre de niv verticaux - =llm+70 dans common_mod */ |
---|
| 10 | #define NLD (int)(40) /* Nbre de niv verticaux faits sans diff */ |
---|
| 11 | #define NLRT (int)(650) /* Nbre de niv verticaux dans table fmoy - aussi dans common_mod */ |
---|
[3] | 12 | |
---|
[1126] | 13 | /* fluxes at 1300 km : upward is +, downward is - */ |
---|
| 14 | #define top_H (double)(+1.1e4) |
---|
| 15 | #define top_H2 (double)(+3.7e3) |
---|
| 16 | #define top_N4S (double)(-1.1e8) /* = -2.5e8/2.27 ... */ |
---|
| 17 | |
---|
[3] | 18 | /* DEPEND DE LA VERSION CHIMIE: */ |
---|
| 19 | #define VERCHIM "chimie_simpnit_051006_bis" |
---|
[1126] | 20 | #define NREAC (int)(377) /* nombre de reactions - aussi dans common_mod */ |
---|
| 21 | #define RDISS (int)(54) /* nombre de photodiss - aussi dans common_mod */ |
---|
| 22 | #define NC (int)(44) /* nb de composes - aussi dans common_mod */ |
---|
[3] | 23 | #define ST (int)(NC) /* nb de composes inverses */ |
---|
| 24 | #define NHC (int)(32) /* nb hydrocarbons */ |
---|
| 25 | |
---|
| 26 | #define THETA (double)(0.501) |
---|
| 27 | #ifndef M_PI |
---|
| 28 | #define M_PI (double)(3.14159265358979323846e0) |
---|
| 29 | #endif |
---|
| 30 | #define RAD (double)(M_PI / 180.0e0) |
---|
| 31 | #ifndef max |
---|
| 32 | #define max(a,b) ((a)>(b)?(a):(b)) |
---|
| 33 | #define min(a,b) ((a)<=(b)?(a):(b)) |
---|
| 34 | #endif |
---|
| 35 | |
---|
| 36 | void chimie_(char (*)[10], double *, double *, double (*)[NLEV], |
---|
| 37 | int (*)[5], int *, int *, int (*)[200][2], int (*)[200]); |
---|
[1126] | 38 | void comp_(char (*)[10], double *, double *, double *, double (*)[NLEV]); |
---|
| 39 | void disso_(double (*)[NLRT][RDISS+1][15], int *); |
---|
| 40 | double omega( double, double, double ); |
---|
| 41 | void solve( double ***, int, int, int ); |
---|
| 42 | void solve_b( double ***, double **, int, int, int ); |
---|
[3] | 43 | float *rm1d( int, int ); |
---|
| 44 | float **rm2d( int, int, int, int ); |
---|
| 45 | float ***rm3d( int, int, int, int, int, int ); |
---|
| 46 | float ****rm4d( int, int, int, int, int, int, int, int ); |
---|
| 47 | double *dm1d( int, int ); |
---|
| 48 | double **dm2d( int, int, int, int ); |
---|
| 49 | double ***dm3d( int, int, int, int, int, int ); |
---|
| 50 | double ****dm4d( int, int, int, int, int, int, int, int ); |
---|
| 51 | void frm1d( float *, int ); |
---|
| 52 | void frm2d( float **, int, int, int ); |
---|
| 53 | void frm3d( float ***, int, int, int, int, int ); |
---|
| 54 | void fdm1d( double *, int ); |
---|
| 55 | void fdm2d( double **, int, int, int ); |
---|
| 56 | void fdm3d( double ***, int, int, int, int, int ); |
---|
| 57 | int *im1d( int, int ); |
---|
| 58 | int **im2d( int, int, int, int ); |
---|
| 59 | int ***im3d( int, int, int, int, int, int ); |
---|