Skip to content
Snippets Groups Projects
Commit 12ecf063 authored by Josh Borrow's avatar Josh Borrow
Browse files

Brought unions back

parent 85a0359a
No related branches found
No related tags found
1 merge request!540Add Pressure-Energy (P-U) SPH
......@@ -106,7 +106,7 @@ struct part {
float pressure_bar;
/* Store density/force specific stuff. */
/*union {*/
union {
/**
* @brief Structure for the variables only used in the density loop over
......@@ -128,7 +128,12 @@ struct part {
/*! Derivative of the weighted pressure with respect to h */
float pressure_bar_dh;
/*! Particle velocity curl. */
float rot_v[3];
/*! Particle velocity divergence. */
float div_v;
} density;
/**
......@@ -156,7 +161,7 @@ struct part {
float h_dt;
} force;
/*};*/
};
/* Chemistry information */
struct chemistry_part_data chemistry_data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment