[cig-commits] commit: Pat and Dave:
Mercurial
hg at geodynamics.org
Mon Nov 24 11:30:21 PST 2008
changeset: 16:aa4578f77826
user: DavidLee
date: Wed Jun 27 00:30:24 2007 +0000
files: MaterialPoints/src/ParticleFeVariable.c
description:
Pat and Dave:
Changes to the FeVariable class to allow checking vs reference solution:
* Moved the check of importExport format filters to the Build phase - in several
months since this was last used, the ordering has changed, and Plugins only get
constructed AFTER FeVariables from the XML. Thus, we needed to allow plugins a
chance to register new import/export filters, BEFORE FeVariables check that the
user-specified filter for an FeVariable exists correctly.
* Allowing the user to set up an FeVariable as a "Reference" FeVariable - i.e. it
loads its values from a filename, regardless of whether checkpointing is enabled.
This is turned on/off in the XML via a Boolean on each FeVariable - off by default.
Fixing an OperatorFeVariable issue:
* Allowed OperatorFeVariables to reference the DofLayout of the FeVariable that they
operate on (necessary for the gradient operator.)
diff -r 4777ed6e1398 -r aa4578f77826 MaterialPoints/src/ParticleFeVariable.c
--- a/MaterialPoints/src/ParticleFeVariable.c Sun Jun 10 10:02:37 2007 +0000
+++ b/MaterialPoints/src/ParticleFeVariable.c Wed Jun 27 00:30:24 2007 +0000
@@ -38,7 +38,7 @@
** License along with this library; if not, write to the Free Software
** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
**
-** $Id: ParticleFeVariable.c 465 2007-05-21 22:08:05Z LukeHodkinson $
+** $Id: ParticleFeVariable.c 474 2007-06-27 00:30:24Z DavidLee $
**
**~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -117,6 +117,8 @@ ParticleFeVariable* _ParticleFeVariable_
True, /* isCheckpointedAndReloaded */
NULL, /* import format type */
NULL, /* export format type */
+ False, /* use a reference solution from file */
+ False, /* load the reference solution at each time step */
0, /* communicator */
NULL /* fv_Register */
);
@@ -204,7 +206,7 @@ void _ParticleFeVariable_Construct( void
/* Construct Parent */
_FieldVariable_Construct( self, cf, data );
_FeVariable_Init( (FeVariable*)self, mesh, NULL, NULL, NULL, NULL, NULL, NULL,
- StgFEM_Native_ImportExportType, StgFEM_Native_ImportExportType );
+ StgFEM_Native_ImportExportType, StgFEM_Native_ImportExportType, False, False );
_ParticleFeVariable_Init( self, swarm, context );
}
More information about the CIG-COMMITS
mailing list