2010-09-27 05:53:05 -05:00
|
|
|
#ifndef AIR_H
|
|
|
|
#define AIR_H
|
|
|
|
#include "defines.h"
|
|
|
|
|
2011-04-24 11:49:33 -05:00
|
|
|
extern float gravmap[YRES/CELL][XRES/CELL]; //Maps to be used by the main thread
|
2011-04-22 11:06:09 -05:00
|
|
|
extern float gravx[YRES/CELL][XRES/CELL];
|
|
|
|
extern float gravy[YRES/CELL][XRES/CELL];
|
2011-07-18 17:58:08 -05:00
|
|
|
extern float gravp[YRES/CELL][XRES/CELL];
|
|
|
|
extern float *gravpf;
|
|
|
|
extern float *gravxf;
|
|
|
|
extern float *gravyf;
|
2011-06-09 16:35:00 -05:00
|
|
|
extern unsigned gravmask[YRES/CELL][XRES/CELL];
|
2011-04-22 11:06:09 -05:00
|
|
|
|
2011-04-24 11:49:33 -05:00
|
|
|
extern float th_ogravmap[YRES/CELL][XRES/CELL]; // Maps to be processed by the gravity thread
|
|
|
|
extern float th_gravmap[YRES/CELL][XRES/CELL];
|
|
|
|
extern float th_gravx[YRES/CELL][XRES/CELL];
|
|
|
|
extern float th_gravy[YRES/CELL][XRES/CELL];
|
2011-07-18 17:58:08 -05:00
|
|
|
extern float *th_gravpf;
|
|
|
|
extern float *th_gravxf;
|
|
|
|
extern float *th_gravyf;
|
|
|
|
extern float th_gravp[YRES/CELL][XRES/CELL];
|
2011-04-24 11:49:33 -05:00
|
|
|
|
2010-09-27 05:53:05 -05:00
|
|
|
extern float vx[YRES/CELL][XRES/CELL], ovx[YRES/CELL][XRES/CELL];
|
|
|
|
extern float vy[YRES/CELL][XRES/CELL], ovy[YRES/CELL][XRES/CELL];
|
|
|
|
extern float pv[YRES/CELL][XRES/CELL], opv[YRES/CELL][XRES/CELL];
|
|
|
|
|
2011-06-18 06:19:47 -05:00
|
|
|
extern float cb_vx[YRES/CELL][XRES/CELL];
|
|
|
|
extern float cb_vy[YRES/CELL][XRES/CELL];
|
|
|
|
extern float cb_pv[YRES/CELL][XRES/CELL];
|
|
|
|
extern float cb_hv[YRES/CELL][XRES/CELL];
|
2010-09-27 05:53:05 -05:00
|
|
|
|
|
|
|
extern float fvx[YRES/CELL][XRES/CELL], fvy[YRES/CELL][XRES/CELL];
|
|
|
|
|
2011-06-01 14:18:19 -05:00
|
|
|
extern float hv[YRES/CELL][XRES/CELL], ohv[YRES/CELL][XRES/CELL]; // Ambient Heat
|
|
|
|
|
2010-09-27 05:53:05 -05:00
|
|
|
extern float kernel[9];
|
|
|
|
|
|
|
|
void make_kernel(void);
|
|
|
|
|
2011-06-01 14:18:19 -05:00
|
|
|
void update_airh(void);
|
|
|
|
|
2011-04-22 11:06:09 -05:00
|
|
|
void update_grav(void);
|
|
|
|
|
2010-09-27 05:53:05 -05:00
|
|
|
void update_air(void);
|
|
|
|
|
2011-06-01 14:18:19 -05:00
|
|
|
#endif
|