[cig-commits] r13971 - in cs/cigma/trunk: . tmp

luis at geodynamics.org luis at geodynamics.org
Wed Jan 28 09:04:52 PST 2009


Author: luis
Date: 2009-01-28 09:04:52 -0800 (Wed, 28 Jan 2009)
New Revision: 13971

Added:
   cs/cigma/trunk/tmp/
   cs/cigma/trunk/tmp/compare.py
   cs/cigma/trunk/tmp/rules.py
Removed:
   cs/cigma/trunk/compare.py
   cs/cigma/trunk/rules.py
Modified:
   cs/cigma/trunk/.gitignore
Log:
Clean up test scripts (moved to tmp dir)

Modified: cs/cigma/trunk/.gitignore
===================================================================
--- cs/cigma/trunk/.gitignore	2009-01-28 01:35:54 UTC (rev 13970)
+++ cs/cigma/trunk/.gitignore	2009-01-28 17:04:52 UTC (rev 13971)
@@ -60,9 +60,9 @@
 /tests/Makefile.in
 
 # Other patterns
-/tmp
 /src/hello
 /src/tmp
+/tmp/tmp
 /cigma
 /h5attr
 /vtk-residuals

Deleted: cs/cigma/trunk/compare.py
===================================================================
--- cs/cigma/trunk/compare.py	2009-01-28 01:35:54 UTC (rev 13970)
+++ cs/cigma/trunk/compare.py	2009-01-28 17:04:52 UTC (rev 13971)
@@ -1,41 +0,0 @@
-#!/usr/bin/env python
-
-import numpy
-import tables
-
-from _cigma import *
-
-
-def compare(a,b,**kw):
-    raise NotImplementedError('Need compare(a,b)')
-
-
-# first function
-nc1 = nc_array(nno1, ndim)
-eb1 = eb_array(nel1, ndofs1)
-cell1 = CellType.HEX8
-mesh1 = MeshPart(nc1, eb1, cell1)
-dosf1 = dofs_array(nno1, ndofs1)
-field1 = Field(dofs1, mesh1)
-
-# second function
-nc2 = nc_array(nno2, ndim)
-eb2 = eb_array(nel2, ndofs2)
-cell2 = CellType.TET4
-mesh2 = MeshPart(nc2, eb2, cell2)
-dofs2 = dofs_array(nno2, ndofs2)
-field2 = Field(dofs2, mesh2)
-
-# integration mesh
-nc = nc_array(nno, ndim)
-eb = eb_array(nel, ndofs)
-cell = CellType.HEX8
-mesh = MeshPart(nc, eb, cell)
-
-# Compare first and second
-op = CompareOp()
-op.first = field1
-op.second = field2
-op.run()
-eps = op.residuals
-

Deleted: cs/cigma/trunk/rules.py
===================================================================
--- cs/cigma/trunk/rules.py	2009-01-28 01:35:54 UTC (rev 13970)
+++ cs/cigma/trunk/rules.py	2009-01-28 17:04:52 UTC (rev 13971)
@@ -1,16 +0,0 @@
-#!/usr/bin/env python
-
-from _cigma import *
-
-hex8 = _cigma.hex8()
-tet4 = _cigma.tet4()
-tri3 = _cigma.tri3()
-quad4 = _cgma.quad4()
-
-rules = {
-    'hex8': hex8.default_rule(),
-    'tet4': tet4.default_rule(),
-    'tri3': tri3.default_rule(),
-    'quad4': quad4.default_rule(),
-}
-

Copied: cs/cigma/trunk/tmp/compare.py (from rev 13911, cs/cigma/trunk/compare.py)
===================================================================
--- cs/cigma/trunk/tmp/compare.py	                        (rev 0)
+++ cs/cigma/trunk/tmp/compare.py	2009-01-28 17:04:52 UTC (rev 13971)
@@ -0,0 +1,41 @@
+#!/usr/bin/env python
+
+import numpy
+import tables
+
+from _cigma import *
+
+
+def compare(a,b,**kw):
+    raise NotImplementedError('Need compare(a,b)')
+
+
+# first function
+nc1 = nc_array(nno1, ndim)
+eb1 = eb_array(nel1, ndofs1)
+cell1 = CellType.HEX8
+mesh1 = MeshPart(nc1, eb1, cell1)
+dosf1 = dofs_array(nno1, ndofs1)
+field1 = Field(dofs1, mesh1)
+
+# second function
+nc2 = nc_array(nno2, ndim)
+eb2 = eb_array(nel2, ndofs2)
+cell2 = CellType.TET4
+mesh2 = MeshPart(nc2, eb2, cell2)
+dofs2 = dofs_array(nno2, ndofs2)
+field2 = Field(dofs2, mesh2)
+
+# integration mesh
+nc = nc_array(nno, ndim)
+eb = eb_array(nel, ndofs)
+cell = CellType.HEX8
+mesh = MeshPart(nc, eb, cell)
+
+# Compare first and second
+op = CompareOp()
+op.first = field1
+op.second = field2
+op.run()
+eps = op.residuals
+

Copied: cs/cigma/trunk/tmp/rules.py (from rev 13911, cs/cigma/trunk/rules.py)
===================================================================
--- cs/cigma/trunk/tmp/rules.py	                        (rev 0)
+++ cs/cigma/trunk/tmp/rules.py	2009-01-28 17:04:52 UTC (rev 13971)
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+
+from _cigma import *
+
+hex8 = _cigma.hex8()
+tet4 = _cigma.tet4()
+tri3 = _cigma.tri3()
+quad4 = _cgma.quad4()
+
+rules = {
+    'hex8': hex8.default_rule(),
+    'tet4': tet4.default_rule(),
+    'tri3': tri3.default_rule(),
+    'quad4': quad4.default_rule(),
+}
+



More information about the CIG-COMMITS mailing list