← Back to team overview

dolfin team mailing list archive

[noreply@xxxxxxxxxxxxx: [Branch ~dolfin-core/dolfin/main] Rev 4332: Get Functional demo working.]

 

Why is the element argument needed?

Is it because otherwise FFC can't figure out which cell to use (like a
triangle)?

--
Anders
--- Begin Message ---
------------------------------------------------------------
revno: 4332
committer: Garth N. Wells <gnw20@xxxxxxxxx>
branch nick: dolfin-all
timestamp: Thu 2009-11-26 23:58:44 +0000
message:
  Get Functional demo working.
modified:
  demo/pde/functional/python/demo.py


--
lp:dolfin
https://code.launchpad.net/~dolfin-core/dolfin/main

Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
To unsubscribe from this branch go to https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription.
=== modified file 'demo/pde/functional/python/demo.py'
--- demo/pde/functional/python/demo.py	2009-10-06 16:26:39 +0000
+++ demo/pde/functional/python/demo.py	2009-11-26 23:58:44 +0000
@@ -22,7 +22,7 @@
 V = FunctionSpace(mesh, "CG", 2)
 
 # Define the function v
-v = Expression("sin(x[0]) + cos(x[1])", V=V)
+v = Expression("sin(x[0]) + cos(x[1])", element=FiniteElement("CG", triangle, 2))
 
 # Define functional
 M = (v*v + dot(grad(v), grad(v)))*dx


--- End Message ---

Attachment: signature.asc
Description: Digital signature