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

Brought unions back

parent 85a0359a
Branches
Tags
1 merge request!540Add Pressure-Energy (P-U) SPH
...@@ -106,7 +106,7 @@ struct part { ...@@ -106,7 +106,7 @@ struct part {
float pressure_bar; float pressure_bar;
/* Store density/force specific stuff. */ /* Store density/force specific stuff. */
/*union {*/ union {
/** /**
* @brief Structure for the variables only used in the density loop over * @brief Structure for the variables only used in the density loop over
...@@ -128,7 +128,12 @@ struct part { ...@@ -128,7 +128,12 @@ struct part {
/*! Derivative of the weighted pressure with respect to h */ /*! Derivative of the weighted pressure with respect to h */
float pressure_bar_dh; float pressure_bar_dh;
/*! Particle velocity curl. */
float rot_v[3];
/*! Particle velocity divergence. */
float div_v;
} density; } density;
/** /**
...@@ -156,7 +161,7 @@ struct part { ...@@ -156,7 +161,7 @@ struct part {
float h_dt; float h_dt;
} force; } force;
/*};*/ };
/* Chemistry information */ /* Chemistry information */
struct chemistry_part_data chemistry_data; 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