← Back to team overview

dolfin team mailing list archive

[noreply@xxxxxxxxxxxxx: [Branch ~dolfin-core/dolfin/main] Rev 5939: Minor change in adaptivity test - was failing to build. This might help . . . .]

 

Should the std:: really be needed in Expressions? It hasn't been before.

--
Anders
--- Begin Message ---
------------------------------------------------------------
revno: 5939
committer: Garth N. Wells <gnw20@xxxxxxxxx>
branch nick: dolfin-all
timestamp: Thu 2011-06-16 17:57:59 +0100
message:
  Minor change in adaptivity test - was failing to build. This might help . . . . 
modified:
  test/unit/adaptivity/python/errorcontrol.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 'test/unit/adaptivity/python/errorcontrol.py'
--- test/unit/adaptivity/python/errorcontrol.py	2011-06-02 19:26:59 +0000
+++ test/unit/adaptivity/python/errorcontrol.py	2011-06-16 16:57:59 +0000
@@ -37,8 +37,8 @@
 
         u = TrialFunction(V)
         v = TestFunction(V)
-        f = Expression("10*exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)", degree=1)
-        g = Expression("sin(5*x[0])", degree=1)
+        f = Expression("10*std::exp(-(std::pow(x[0] - 0.5, 2) + std::pow(x[1] - 0.5, 2)) / 0.02)", degree=1)
+        g = Expression("std::sin(5*x[0])", degree=1)
         a = inner(grad(u), grad(v))*dx
         L = f*v*dx + g*v*ds
         problem = VariationalProblem(a, L, bc)


--- End Message ---

Follow ups