[cig-commits] commit: Fixed Constant to new interface: MADDs-1 now working at Dolfin 0.9.5
Mercurial
hg at geodynamics.org
Wed Dec 9 20:51:08 PST 2009
changeset: 95:162b373935cf
user: Marc Spiegelman <mspieg at ldeo.columbia.edu>
date: Sat Dec 05 16:08:30 2009 -0500
files: MADDs-1/cpp/Stokes_P2P1.ufl MADDs-1/cpp/main.cpp
description:
Fixed Constant to new interface: MADDs-1 now working at Dolfin 0.9.5
diff -r 204cfefa3897 -r 162b373935cf MADDs-1/cpp/Stokes_P2P1.ufl
--- a/MADDs-1/cpp/Stokes_P2P1.ufl Sat Dec 05 15:29:38 2009 -0500
+++ b/MADDs-1/cpp/Stokes_P2P1.ufl Sat Dec 05 16:08:30 2009 -0500
@@ -9,8 +9,8 @@
#
# Compile this form with FFC: ffc -l dolfin -O Stokes_P2P1.ufl
-P2 = VectorElement("Lagrange", triangle, 2)
-P1 = FiniteElement("Lagrange", triangle, 1)
+P2 = VectorElement("Lagrange", "triangle", 2)
+P1 = FiniteElement("Lagrange", "triangle", 1)
TH = P2 + P1
(v, q) = TestFunctions(TH)
@@ -22,4 +22,4 @@ f = Function(P2)
f = Function(P2)
a = (alpha*inner(grad(v), grad(u)) - div(v)*p + q*div(u))*dx
-L = inner(v, f)*dx
+L = dot(v, f)*dx
diff -r 204cfefa3897 -r 162b373935cf MADDs-1/cpp/main.cpp
--- a/MADDs-1/cpp/main.cpp Sat Dec 05 15:29:38 2009 -0500
+++ b/MADDs-1/cpp/main.cpp Sat Dec 05 16:08:30 2009 -0500
@@ -146,7 +146,7 @@ int main(int argc, char* argv[])
bcs.push_back(&bc2); //singular problem
//set RHS
- Constant f(2, 0.0);
+ Constant f(0.0, 0.0);
// set forms
printf("Using P2_P1 mixed elements\n");
More information about the CIG-COMMITS
mailing list