[cig-commits] commit: Rejigging this test because it was failing with the current Destroy process
Mercurial
hg at geodynamics.org
Mon Feb 1 15:31:28 PST 2010
changeset: 358:ebdb3a951b89
branch: pcu_rejig
user: JulianGiordani
date: Fri Dec 11 12:29:37 2009 +1100
files: Utils/tests/PCDVCSuite.c
description:
Rejigging this test because it was failing with the current Destroy process
diff -r 7723fda3994a -r ebdb3a951b89 Utils/tests/PCDVCSuite.c
--- a/Utils/tests/PCDVCSuite.c Thu Dec 10 18:57:37 2009 +1100
+++ b/Utils/tests/PCDVCSuite.c Fri Dec 11 12:29:37 2009 +1100
@@ -321,20 +321,27 @@ void PCDVCSuite_Test( PCDVCSuiteData* da
pcu_filename_input( "testPCDVC.xml", inputFile );
+ /* rejigged this test to clean up after each run */
context = _PICelleratorContext_DefaultNew( "context" );
cf = stgMainInitFromXML( inputFile, MPI_COMM_WORLD, context );
stgMainBuildAndInitialise( cf );
-
testElementIntegral_CircleInterface( context, &mean, &standardDeviation );
compareAgainstReferenceSolution(context, stream, mean, standardDeviation, "testPCDVC_CircleInterface.expected" );
+ stgMainDestroy( cf );
+ context = _PICelleratorContext_DefaultNew( "context" );
+ cf = stgMainInitFromXML( inputFile, MPI_COMM_WORLD, context );
+ stgMainBuildAndInitialise( cf );
testElementIntegral_PolynomialFunction( context, &mean, &standardDeviation );
compareAgainstReferenceSolution(context, stream, mean, standardDeviation, "testPCDVC_PolynomialFunction.expected" );
+ stgMainDestroy( cf );
+ context = _PICelleratorContext_DefaultNew( "context" );
+ cf = stgMainInitFromXML( inputFile, MPI_COMM_WORLD, context );
+ stgMainBuildAndInitialise( cf );
testElementIntegral_ExponentialInterface( context, &mean, &standardDeviation );
compareAgainstReferenceSolution(context, stream, mean, standardDeviation, "testPCDVC_ExponentialInterface.expected" );
-
- Stg_ComponentFactory_DestroyComponents( cf, NULL );
+ stgMainDestroy( cf );
}
More information about the CIG-COMMITS
mailing list