|
Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
|
A data only struct for the primitive variables. More...
#include <basic_structs.h>

Public Member Functions | |
| Primitive ()=default | |
| Default constructor, should init everything to zero. | |
| Primitive (Real const in_density, VectorXYZ< Real > const &in_velocity, Real const in_pressure, VectorXYZ< Real > const &in_magnetic={0, 0, 0}, Real const in_gas_energy=0.0) | |
Public Attributes | |
| Real | density |
| Real | pressure |
| VectorXYZ< Real > | velocity |
A data only struct for the primitive variables.
|
inline |
Manual constructor, mostly used for testing and doesn't init all members. The in_ prefix stands for input, mostly to avoid name collision with the member variables