# ---------------------------------------------------------------------
import unittest
-from PyDealII.Debug import *
+
+try:
+ from PyDealII.Debug import *
+except ImportError:
+ from PyDealII.Release import *
class TestCellAccessorWrapper(unittest.TestCase):
import math
import os
import unittest
-from PyDealII.Debug import *
+
+try:
+ from PyDealII.Debug import *
+except ImportError:
+ from PyDealII.Release import *
class TestManifoldWrapperShell(unittest.TestCase):
# ---------------------------------------------------------------------
import unittest
-from PyDealII.Debug import *
+
+try:
+ from PyDealII.Debug import *
+except ImportError:
+ from PyDealII.Release import *
class TestMappingWrapperCube(unittest.TestCase):
import unittest
import math
-from PyDealII.Debug import *
+
+try:
+ from PyDealII.Debug import *
+except ImportError:
+ from PyDealII.Release import *
class TestPointWrapper(unittest.TestCase):
# ---------------------------------------------------------------------
import unittest
-from PyDealII.Debug import *
+
+try:
+ from PyDealII.Debug import *
+except ImportError:
+ from PyDealII.Release import *
class TestQuadratureWrapper(unittest.TestCase):
def test_gauss(self):
quadrature = Quadrature(dim = 3)
quadrature.create_gauss(n = 1);
-
+
w_sum = 0.
for weight in quadrature.weights():
w_sum += weight
-
+
self.assertTrue(abs(1. - w_sum) < 1e-10)
def test_gauss_lobatto(self):
quadrature = Quadrature(dim = 3)
quadrature.create_gauss_lobatto(n = 2);
-
+
w_sum = 0.
for weight in quadrature.weights():
w_sum += weight
-
+
self.assertTrue(abs(1. - w_sum) < 1e-10)
if __name__ == '__main__':
# ---------------------------------------------------------------------
import unittest
-from PyDealII.Debug import *
+
+try:
+ from PyDealII.Debug import *
+except ImportError:
+ from PyDealII.Release import *
class TestTriangulationWrapper(unittest.TestCase):