tRow[ 3 ] /= tRow[ 2 ];
// calculate solution: backward substitution
- int r0 = iR[0], r1 = iR[1]/*, r2 = iR[2], r3 = 3*/;
-// bc[ r2 ] = tRow[ 3 ] / tRow[ 2 ];
-
-// tRow = T[ r1 ];
-// bc[ r1 ] = (tRow[ 3 ] - bc[r2]*tRow[ 2 ]) / tRow[ 1 ];
-
-// tRow = T[ r0 ];
-// bc[ r0 ] = (tRow[ 3 ] - bc[r2]*tRow[ 2 ] - bc[r1]*tRow[ 1 ]) / tRow[ 0 ];
-
-// bc[ r3 ] = 1. - bc[0] - bc[1] - bc[2];
bc[ 2 ] = tRow[ 3 ];
tRow = T[ iR[1] ];
<< " VOL: " << vol << endl;
CPPUNIT_ASSERT( ok );
// CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.166667, vol, 1e-5);
-// CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.25, baryCenter[0], 1e-5);
-// CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.25, baryCenter[1], 1e-5);
-// CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.25, baryCenter[2], 1e-5);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.125, baryCenter[0], 1e-5);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.125, baryCenter[1], 1e-5);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.625, baryCenter[2], 1e-5);
}
void UnitTetraIntersectionBaryTest::test_UnitTetraIntersectionBary_5()
{
*/
ParaMEDMEMTest_TmpFilesRemover::~ParaMEDMEMTest_TmpFilesRemover()
{
+#ifdef _DEBUG_
+ if ( myNoRemove ) return;
+#endif
set<string>::iterator it = myTmpFiles.begin();
for (; it != myTmpFiles.end(); it++) {
if (access((*it).data(), F_OK) == 0)
bool ParaMEDMEMTest_TmpFilesRemover::Register(const string theTmpFile)
{
+// if (access(theTmpFile.data(), F_OK) == 0)
+// remove(theTmpFile.data());
return (myTmpFiles.insert(theTmpFile)).second;
}
nodist_salomescript_DATA= libParaMEDMEM_Swig.py
-dist_salomescript_DATA= test_intersectiondec.py \
- test_noncoincidentdec.py \
- test_structuredcoincodentdec.py \
+dist_salomescript_DATA= test_IntersectionDEC.py \
+ test_NonCoincidentDEC.py \
+ test_StructuredCoincodentDEC.py \
ParaMEDMEM.py
\ No newline at end of file