removed the smberror, and corrected a typo in the exact function

This commit is contained in:
Stephen McQuay 2010-10-23 17:05:33 -06:00
parent 47a840c4b4
commit 02b311f72d

View File

@ -32,15 +32,6 @@ def get_logger(filename, level = logging.DEBUG, logger_name = 'pymoab', size = 2
log = get_logger(filename = '/tmp/interp.log') log = get_logger(filename = '/tmp/interp.log')
class smberror(Exception):
"""
this is a silly little exception subclass
"""
def __init__(self, val):
self.value = val
def __str__(self):
return repr(self.value)
def rms(errors): def rms(errors):
""" """
root mean square calculation root mean square calculation
@ -56,7 +47,7 @@ def exact_func(X):
the exact function used from baker's article (for testing) the exact function used from baker's article (for testing)
""" """
x = X[0] x = X[0]
y = X[0] y = X[1]
return np.power((np.sin(x * np.pi) * np.cos(y * np.pi)), 2) return np.power((np.sin(x * np.pi) * np.cos(y * np.pi)), 2)
def exact_func_3D(X): def exact_func_3D(X):