1 /*-------------------------------------------------------------------------- 2 * Header file for the Directions data structures 3 *--------------------------------------------------------------------------*/ 4 5 #ifndef KRIPKE_DIRECTIONS_H__ 6 #define KRIPKE_DIRECTIONS_H__ 7 8 #include <vector> 9 10 class Grid_Data; 11 struct Input_Variables; 12 13 /** 14 * Contains information needed for one quadrature set direction. 15 */ 16 struct Directions{ 17 double xcos; /* Absolute value of the x-direction cosine. */ 18 double ycos; /* Absolute value of the y-direction cosine. */ 19 double zcos; /* Absolute value of the z-direction cosine. */ 20 double w; /* weight for the quadrature rule.*/ 21 int id; /* direction flag (= 1 if x-direction 22 cosine is positive; = -1 if not). */ 23 int jd; /* direction flag (= 1 if y-direction 24 cosine is positive; = -1 if not). */ 25 int kd; /* direction flag (= 1 if z-direction 26 cosine is positive; = -1 if not). */ 27 int octant; 28 }; 29 30 31 void InitDirections(Grid_Data *grid_data, Input_Variables *input_vars); 32 33 #endif 34