changed the 2D gmsh to work with new baker method
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user