From c975644d4e0bb226223035f357d8dff68777f798 Mon Sep 17 00:00:00 2001 From: shriwise Date: Sat, 11 Aug 2018 08:40:13 -0500 Subject: [PATCH] Maintain default values in Pos/Dir struct. --- include/openmc/position.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openmc/position.h b/include/openmc/position.h index e49958fe34..a0106b5f26 100644 --- a/include/openmc/position.h +++ b/include/openmc/position.h @@ -58,7 +58,7 @@ struct Position { } // Data members - union{ double xyz[3]; struct{ double x,y,z; }; }; + union{ double xyz[3]; struct{ double x,y,z = 0.0; }; }; }; // Binary operators