[cig-commits] commit: Make the code error out when interpolating into unsynced space
Mercurial
hg at geodynamics.org
Fri Mar 16 11:51:12 PDT 2012
changeset: 828:10e3119b37fb
tag: tip
user: Walter Landry <wlandry at caltech.edu>
date: Fri Mar 16 11:51:00 2012 -0700
files: Discretisation/src/FeVariable.cxx
description:
Make the code error out when interpolating into unsynced space
diff -r 2e5c9df86a89 -r 10e3119b37fb Discretisation/src/FeVariable.cxx
--- a/Discretisation/src/FeVariable.cxx Thu Mar 15 12:51:23 2012 -0700
+++ b/Discretisation/src/FeVariable.cxx Fri Mar 16 11:51:00 2012 -0700
@@ -715,12 +715,12 @@ InterpolationResult _FeVariable_Interpol
}
else if ( retValue == SHADOW ) {
if ( False == self->shadowValuesSynchronised ) {
- Stream* warningStr = Journal_Register( Error_Type, (Name)self->type );
- Journal_Printf( warningStr, "Warning - in %s: user asking to interpolate a value at "
- "coord (%g,%g,%g), which is in shadow space, but "
- "FeVariable_SyncShadowValues() hasn't been called yet.\n",
- __func__, globalCoord[0], globalCoord[1], globalCoord[2] );
- return retValue;
+ Journal_Firewall( 0, Journal_Register( Error_Type, (Name)self->type ),
+ "Error - in %s: rying to interpolate %s at "
+ "(%g,%g,%g), which is in shadow space, but "
+ "FeVariable_SyncShadowValues() hasn't been called yet.\n",
+ __func__, self->name, globalCoord[0], globalCoord[1], globalCoord[2] );
+ return retValue;
}
/** Now interpolate the value at that coordinate, using shape functions */
self->_interpolateWithinElement( self, elementCoordIn, elLocalCoord, value );
More information about the CIG-COMMITS
mailing list