[cig-commits] commit: Add a missing stddef.h include needed for offsetof

Mercurial hg at geodynamics.org
Sun Nov 7 21:34:20 PST 2010


changeset:   774:db6909e37007
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Sun Nov 07 21:34:12 2010 -0800
files:       SLE/ProvidedSystems/AdvectionDiffusion/src/Residual.c SLE/ProvidedSystems/AdvectionDiffusion/src/UpwindParameter.c
description:
Add a missing stddef.h include needed for offsetof


diff -r b522a8889b1e -r db6909e37007 SLE/ProvidedSystems/AdvectionDiffusion/src/Residual.c
--- a/SLE/ProvidedSystems/AdvectionDiffusion/src/Residual.c	Sun Nov 07 09:12:03 2010 -0800
+++ b/SLE/ProvidedSystems/AdvectionDiffusion/src/Residual.c	Sun Nov 07 21:34:12 2010 -0800
@@ -55,6 +55,7 @@
 
 #include <assert.h>
 #include <string.h>
+#include <stddef.h>
 
 /* Textual name of this class */
 const Type AdvDiffResidualForceTerm_Type = "AdvDiffResidualForceTerm";
@@ -421,6 +422,7 @@ void _AdvDiffResidualForceTerm_AssembleE
 
 		/* Get Diffusivity */
 		diffusivity = IntegrationPointMapper_GetDoubleFromMaterial(((IntegrationPointsSwarm *)swarm)->mapper, particle, self->materialExtHandle,
+
 		    offsetof(AdvDiffResidualForceTerm_MaterialExt, diffusivity));
 
 		/* Add to element residual */
diff -r b522a8889b1e -r db6909e37007 SLE/ProvidedSystems/AdvectionDiffusion/src/UpwindParameter.c
--- a/SLE/ProvidedSystems/AdvectionDiffusion/src/UpwindParameter.c	Sun Nov 07 09:12:03 2010 -0800
+++ b/SLE/ProvidedSystems/AdvectionDiffusion/src/UpwindParameter.c	Sun Nov 07 21:34:12 2010 -0800
@@ -41,6 +41,7 @@
 
 #include <math.h>
 #include <assert.h>
+#include <stddef.h>
 
 #include "mpi.h"
 #include <StGermain/StGermain.h>



More information about the CIG-COMMITS mailing list