dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #08574
More bug fixes...
# HG changeset patch
# User "Johan Hake <hake@xxxxxxxxx>"
# Date 1215509705 -7200
# Node ID c4d8c227cce72f6c339090d4b411dfa833e651a0
# Parent 8cfc24837d1fd146357e07e01546fb84882147ef
Fixed namespace bug in bc.py
diff -r 8cfc24837d1f -r c4d8c227cce7 site-packages/dolfin/bc.py
--- a/site-packages/dolfin/bc.py Tue Jul 08 11:20:17 2008 +0200
+++ b/site-packages/dolfin/bc.py Tue Jul 08 11:35:05 2008 +0200
@@ -10,6 +10,8 @@
__all__ = ["DirichletBC", "PeriodicBC"]
import dolfin
+from assemble import jit
+
# DirichletBC class (need to compile form before calling constructor)
class DirichletBC(dolfin.cpp_DirichletBC):
@@ -22,10 +24,10 @@
"Apply boundary condition to linear system"
# Compile form
- (compiled_form, module, form_data) = _jit(form)
+ (compiled_form, module, form_data) = jit(form)
# Create dof maps
- dof_maps = DofMapSet(compiled_form, self.mesh())
+ dof_maps = dolfin.DofMapSet(compiled_form, self.mesh())
# Apply boundary condition
dolfin.cpp_DirichletBC.apply(self, A, b, dof_maps.sub(1), compiled_form)
@@ -34,10 +36,10 @@
"Apply boundary condition to linear system"
# Compile form
- (compiled_form, module, form_data) = _jit(form)
+ (compiled_form, module, form_data) = jit(form)
# Create dof maps
- dof_maps = DofMapSet(compiled_form, self.mesh())
+ dof_maps = dolfin.DofMapSet(compiled_form, self.mesh())
# Apply boundary condition
dolfin.cpp_DirichletBC.zero(self, A, dof_maps.sub(1), compiled_form)
@@ -53,10 +55,10 @@
"Apply boundary condition to linear system"
# Compile form
- (compiled_form, module, form_data) = _jit(form)
+ (compiled_form, module, form_data) = jit(form)
# Create dof maps
- dof_maps = DofMapSet(compiled_form, self.mesh())
+ dof_maps = dolfin.DofMapSet(compiled_form, self.mesh())
# Apply boundary condition
dolfin.cpp_PeriodicBC.apply(self, A, b, dof_maps.sub(1), compiled_form)