[cig-commits] commit: Added a check on context as this will fail
Mercurial
hg at geodynamics.org
Tue Mar 23 10:34:23 PDT 2010
changeset: 393:934af6c07681
user: JericoRevote
date: Tue Jan 19 12:13:52 2010 +1100
files: MaterialPoints/src/ParticleFeVariable.c
description:
Added a check on context as this will fail
if context is NULL.
diff -r cce619afffd2 -r 934af6c07681 MaterialPoints/src/ParticleFeVariable.c
--- a/MaterialPoints/src/ParticleFeVariable.c Mon Jan 18 17:20:32 2010 +1100
+++ b/MaterialPoints/src/ParticleFeVariable.c Tue Jan 19 12:13:52 2010 +1100
@@ -197,7 +197,7 @@ void _ParticleFeVariable_Initialise( voi
Variable_Update( self->dataVariable );
/* If loading from CP, _don't_ recalculate the field as we've already just loaded it!
-- PatrickSunter 22 Nov 2006 */
- if ( False == context->loadFromCheckPoint )
+ if ( context && (False == context->loadFromCheckPoint) )
ParticleFeVariable_Update( self );
}
More information about the CIG-COMMITS
mailing list