Recalculate pressure based on hydrostatic equilibrium.
More...
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
| |
Recalculate pressure based on hydrostatic equilibrium.
Definition in file hydrostatic.c.
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 27 of file hydrostatic.c.
29 {
30
33
34
35 if (argc < 4)
36 ERRMSG(
"Give parameters: <ctl> <atm_in> <atm_hyd>");
37
38
40
41
44
45
47
48
50
51
53
54 return EXIT_SUCCESS;
55}
void write_atm(const char *dirname, const char *filename, const ctl_t *ctl, const atm_t *atm)
Write atmospheric profile data to a text file.
void read_ctl(int argc, char *argv[], ctl_t *ctl)
Read model control parameters from command-line and configuration input.
void read_atm(const char *dirname, const char *filename, const ctl_t *ctl, atm_t *atm)
Read atmospheric profile data from an ASCII file.
void hydrostatic(const ctl_t *ctl, atm_t *atm)
Adjust pressure profile using the hydrostatic equation.
#define ERRMSG(...)
Print an error message with contextual information and terminate the program.
Atmospheric profile data.
double hydz
Reference height for hydrostatic pressure profile (-999 to skip) [km].