From 12ecf0632fed09a1b7a33056db52788f2513a0c0 Mon Sep 17 00:00:00 2001
From: Josh Borrow <joshua.borrow@durham.ac.uk>
Date: Fri, 4 May 2018 13:49:21 +0100
Subject: [PATCH] Brought unions back

---
 src/hydro/PressureEnergy/hydro_part.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/hydro/PressureEnergy/hydro_part.h b/src/hydro/PressureEnergy/hydro_part.h
index cd09b7d876..a844793991 100644
--- a/src/hydro/PressureEnergy/hydro_part.h
+++ b/src/hydro/PressureEnergy/hydro_part.h
@@ -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;
-- 
GitLab