changed the 2D gmsh to work with new baker method

This commit is contained in:
Stephen Mardson McQuay
2011-02-20 19:23:01 -07:00
parent f03da63c4d
commit da95afb14d
3 changed files with 14 additions and 12 deletions
+2 -3
View File
@@ -46,9 +46,8 @@ def exact_func(X):
"""
the exact function used from baker's article (for testing)
"""
x = X[0]
y = X[1]
answer = np.power((np.sin(x * np.pi) * np.cos(y * np.pi)), 2)
x ,y = X
answer = 1.0 + x*x + y*y # np.power((np.sin(x * np.pi) * np.cos(y * np.pi)), 2)
log.debug(answer)
return answer