[yt-svn] commit/yt: brittonsmith: Adding a distinct test for running with the enzo test runner.
Bitbucket
commits-noreply at bitbucket.org
Thu Nov 8 08:56:17 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/369da2bf6c0a/
changeset: 369da2bf6c0a
branch: yt
user: brittonsmith
date: 2012-11-08 17:56:14
summary: Adding a distinct test for running with the enzo test runner.
affected #: 1 file
diff -r 5c4bcee82cc5fc730aa3c8d478db82eae801f6a9 -r 369da2bf6c0a8fc4f045f1abebe57382648d6f14 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -453,6 +453,22 @@
pf_fn, axis, field, weight_field,
ds)
+def standard_small_simulation(pf_fn, fields):
+ if not can_run_pf(pf_fn): return
+ dso = [None]
+ yield GridHierarchyTest(pf_fn)
+ yield ParentageRelationshipsTest(pf_fn)
+ for field in fields:
+ yield GridValuesTest(pf_fn, field)
+ for axis in [0, 1, 2]:
+ for ds in dso:
+ for weight_field in [None, "Density"]:
+ yield ProjectionValuesTest(
+ pf_fn, axis, field, weight_field,
+ ds)
+ yield FieldValuesTest(
+ pf_fn, field, ds)
+
class ShockTubeTest(object):
def __init__(self, data_file, solution_file, fields,
left_edges, right_edges, rtol, atol):
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list