Skip to content

Instantly share code, notes, and snippets.

@ahmadia
Created June 15, 2012 20:12
Show Gist options
  • Save ahmadia/2938488 to your computer and use it in GitHub Desktop.
Save ahmadia/2938488 to your computer and use it in GitHub Desktop.
======================================================================
ERROR: test_1d_acoustics
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/aron/.virtualenvs/pyclaw/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/aron/sandbox/clawpack/clawpack/pyclaw/util.py", line 126, in test_app
raise VerifyError(err)
VerifyError: /Users/aron/sandbox/clawpack/pyclaw/apps/acoustics_1d_homogeneous/acoustics.py
********************************************************************************
verification function
def acoustics_verify(claw):
from clawpack.pyclaw.util import check_diff
import numpy as np
# tests are done across the entire domain of q normally
q0=claw.frames[0].state.get_q_global()
qfinal=claw.frames[claw.num_output_times].state.get_q_global()
# and q_global is only returned on process 0
if q0 != None and qfinal != None:
q0 = q0.reshape([-1])
qfinal = qfinal.reshape([-1])
dx=claw.solution.domain.grid.delta[0]
test = dx*np.sum(np.abs(qfinal-q0))
return check_diff(expected, test, abstol=1e-5)
else:
return
args : {'use_petsc': True, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
expected: 0.000298879563857
test : 0.000269280515652
abstol : 1e-05
********************************************************************************
-------------------- >> begin captured stdout << ---------------------
{'use_petsc': True, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
2012-06-15 23:09:30,797 INFO CLAW: Solution 0 computed for time t=0.000000
2012-06-15 23:09:30,825 INFO CLAW: Solution 1 computed for time t=0.200000
2012-06-15 23:09:30,853 INFO CLAW: Solution 2 computed for time t=0.400000
2012-06-15 23:09:30,882 INFO CLAW: Solution 3 computed for time t=0.600000
2012-06-15 23:09:30,910 INFO CLAW: Solution 4 computed for time t=0.800000
2012-06-15 23:09:30,938 INFO CLAW: Solution 5 computed for time t=1.000000
--------------------- >> end captured stdout << ----------------------
======================================================================
ERROR: test_1d_acoustics
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/aron/.virtualenvs/pyclaw/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/aron/sandbox/clawpack/clawpack/pyclaw/util.py", line 126, in test_app
raise VerifyError(err)
VerifyError: /Users/aron/sandbox/clawpack/pyclaw/apps/acoustics_1d_homogeneous/acoustics.py
********************************************************************************
verification function
def acoustics_verify(claw):
from clawpack.pyclaw.util import check_diff
import numpy as np
# tests are done across the entire domain of q normally
q0=claw.frames[0].state.get_q_global()
qfinal=claw.frames[claw.num_output_times].state.get_q_global()
# and q_global is only returned on process 0
if q0 != None and qfinal != None:
q0 = q0.reshape([-1])
qfinal = qfinal.reshape([-1])
dx=claw.solution.domain.grid.delta[0]
test = dx*np.sum(np.abs(qfinal-q0))
return check_diff(expected, test, abstol=1e-5)
else:
return
args : {'use_petsc': False, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
expected: 0.000298879563857
test : 0.000269280515652
abstol : 1e-05
********************************************************************************
-------------------- >> begin captured stdout << ---------------------
{'use_petsc': False, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Solution 0 computed for time t=0.000000
root: INFO: Solution 1 computed for time t=0.200000
root: INFO: Solution 2 computed for time t=0.400000
root: INFO: Solution 3 computed for time t=0.600000
root: INFO: Solution 4 computed for time t=0.800000
root: INFO: Solution 5 computed for time t=1.000000
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_1d_acoustics
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/aron/.virtualenvs/pyclaw/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/aron/sandbox/clawpack/clawpack/pyclaw/util.py", line 126, in test_app
raise VerifyError(err)
VerifyError: /Users/aron/sandbox/clawpack/pyclaw/apps/acoustics_1d_homogeneous/acoustics.py
********************************************************************************
verification function
def acoustics_verify(claw):
from clawpack.pyclaw.util import check_diff
import numpy as np
# tests are done across the entire domain of q normally
q0=claw.frames[0].state.get_q_global()
qfinal=claw.frames[claw.num_output_times].state.get_q_global()
# and q_global is only returned on process 0
if q0 != None and qfinal != None:
q0 = q0.reshape([-1])
qfinal = qfinal.reshape([-1])
dx=claw.solution.domain.grid.delta[0]
test = dx*np.sum(np.abs(qfinal-q0))
return check_diff(expected, test, abstol=1e-5)
else:
return
args : {'use_petsc': True, 'weno_order': 17, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
expected: 0.000163221216565
test : 0.000152972585568
abstol : 1e-05
********************************************************************************
-------------------- >> begin captured stdout << ---------------------
{'use_petsc': True, 'weno_order': 17, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Solution 0 computed for time t=0.000000
root: INFO: Solution 1 computed for time t=0.200000
root: INFO: Solution 2 computed for time t=0.400000
root: INFO: Solution 3 computed for time t=0.600000
root: INFO: Solution 4 computed for time t=0.800000
root: INFO: Solution 5 computed for time t=1.000000
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_1d_acoustics
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/aron/.virtualenvs/pyclaw/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/aron/sandbox/clawpack/clawpack/pyclaw/util.py", line 126, in test_app
raise VerifyError(err)
VerifyError: /Users/aron/sandbox/clawpack/pyclaw/apps/acoustics_1d_homogeneous/acoustics.py
********************************************************************************
verification function
def acoustics_verify(claw):
from clawpack.pyclaw.util import check_diff
import numpy as np
# tests are done across the entire domain of q normally
q0=claw.frames[0].state.get_q_global()
qfinal=claw.frames[claw.num_output_times].state.get_q_global()
# and q_global is only returned on process 0
if q0 != None and qfinal != None:
q0 = q0.reshape([-1])
qfinal = qfinal.reshape([-1])
dx=claw.solution.domain.grid.delta[0]
test = dx*np.sum(np.abs(qfinal-q0))
return check_diff(expected, test, abstol=1e-5)
else:
return
args : {'use_petsc': False, 'weno_order': 17, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
expected: 0.000163221216565
test : 0.000152972585568
abstol : 1e-05
********************************************************************************
-------------------- >> begin captured stdout << ---------------------
{'use_petsc': False, 'weno_order': 17, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Solution 0 computed for time t=0.000000
root: INFO: Solution 1 computed for time t=0.200000
root: INFO: Solution 2 computed for time t=0.400000
root: INFO: Solution 3 computed for time t=0.600000
root: INFO: Solution 4 computed for time t=0.800000
root: INFO: Solution 5 computed for time t=1.000000
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_2d_acoustics
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/aron/.virtualenvs/pyclaw/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/aron/sandbox/clawpack/clawpack/pyclaw/util.py", line 126, in test_app
raise VerifyError(err)
VerifyError: /Users/aron/sandbox/clawpack/pyclaw/apps/acoustics_2d_homogeneous/acoustics.py
********************************************************************************
verification function
def verify(test_state):
""" verifies 2d homogeneous acoustics from a previously verified run """
import os
import numpy as np
from clawpack.pyclaw.util import check_diff
#grabs parallel results to process 0, None to other processes
test_q=test_state.get_q_global()
if test_q is not None:
test_pressure = test_q[0,:,:]
thisdir = os.path.dirname(__file__)
expected_pressure = np.loadtxt(os.path.join(thisdir,data_filename))
test_err = np.linalg.norm(expected_pressure-test_pressure)
expected_err = 0
return check_diff(expected_err, test_err, abstol=1e-4)
else:
return
args : {'use_petsc': True, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
expected: 0
test : 0.01158856621
abstol : 0.0001
********************************************************************************
-------------------- >> begin captured stdout << ---------------------
{'use_petsc': True, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Solution 0 computed for time t=0.000000
root: INFO: Solution 1 computed for time t=0.012000
root: INFO: Solution 2 computed for time t=0.024000
root: INFO: Solution 3 computed for time t=0.036000
root: INFO: Solution 4 computed for time t=0.048000
root: INFO: Solution 5 computed for time t=0.060000
root: INFO: Solution 6 computed for time t=0.072000
root: INFO: Solution 7 computed for time t=0.084000
root: INFO: Solution 8 computed for time t=0.096000
root: INFO: Solution 9 computed for time t=0.108000
root: INFO: Solution 10 computed for time t=0.120000
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_2d_acoustics
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/aron/.virtualenvs/pyclaw/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/aron/sandbox/clawpack/clawpack/pyclaw/util.py", line 126, in test_app
raise VerifyError(err)
VerifyError: /Users/aron/sandbox/clawpack/pyclaw/apps/acoustics_2d_homogeneous/acoustics.py
********************************************************************************
verification function
def verify(test_state):
""" verifies 2d homogeneous acoustics from a previously verified run """
import os
import numpy as np
from clawpack.pyclaw.util import check_diff
#grabs parallel results to process 0, None to other processes
test_q=test_state.get_q_global()
if test_q is not None:
test_pressure = test_q[0,:,:]
thisdir = os.path.dirname(__file__)
expected_pressure = np.loadtxt(os.path.join(thisdir,data_filename))
test_err = np.linalg.norm(expected_pressure-test_pressure)
expected_err = 0
return check_diff(expected_err, test_err, abstol=1e-4)
else:
return
args : {'use_petsc': False, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
expected: 0
test : 0.01158856621
abstol : 0.0001
********************************************************************************
-------------------- >> begin captured stdout << ---------------------
{'use_petsc': False, 'kernel_language': 'Fortran', 'solver_type': 'sharpclaw'}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
root: INFO: Solution 0 computed for time t=0.000000
root: INFO: Solution 1 computed for time t=0.012000
root: INFO: Solution 2 computed for time t=0.024000
root: INFO: Solution 3 computed for time t=0.036000
root: INFO: Solution 4 computed for time t=0.048000
root: INFO: Solution 5 computed for time t=0.060000
root: INFO: Solution 6 computed for time t=0.072000
root: INFO: Solution 7 computed for time t=0.084000
root: INFO: Solution 8 computed for time t=0.096000
root: INFO: Solution 9 computed for time t=0.108000
root: INFO: Solution 10 computed for time t=0.120000
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 21 tests in 64.291s
FAILED (errors=6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment