From 14f5d089059a5559fd24eb80c5e6bb4e85484f9c Mon Sep 17 00:00:00 2001 From: Thomas Gibson Date: Tue, 11 May 2021 19:43:05 -0500 Subject: [PATCH] Adjust norms (now using integral norms) --- examples/wave/wave-op-mpi.py | 2 +- examples/wave/wave-op-var-velocity.py | 2 +- examples/wave/wave-op.py | 2 +- grudge/op.py | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/wave/wave-op-mpi.py b/examples/wave/wave-op-mpi.py index b6806b9d..1a622eab 100644 --- a/examples/wave/wave-op-mpi.py +++ b/examples/wave/wave-op-mpi.py @@ -195,7 +195,7 @@ def main(): t += dt istep += 1 - assert op.norm(dcoll, fields[0], 2) < 1 + assert op.norm(dcoll, fields[0], 2) < 10 if __name__ == "__main__": diff --git a/examples/wave/wave-op-var-velocity.py b/examples/wave/wave-op-var-velocity.py index 77b9daf6..9e246848 100644 --- a/examples/wave/wave-op-var-velocity.py +++ b/examples/wave/wave-op-var-velocity.py @@ -201,7 +201,7 @@ def main(): t += dt istep += 1 - assert op.norm(dcoll, fields[0], 2) < 1 + assert op.norm(dcoll, fields[0], 2) < 10 if __name__ == "__main__": diff --git a/examples/wave/wave-op.py b/examples/wave/wave-op.py index f8ef5785..2c9fa69c 100644 --- a/examples/wave/wave-op.py +++ b/examples/wave/wave-op.py @@ -168,7 +168,7 @@ def main(): t += dt istep += 1 - assert op.norm(dcoll, fields[0], 2) < 1 + assert op.norm(dcoll, fields[0], 2) < 10 if __name__ == "__main__": diff --git a/grudge/op.py b/grudge/op.py index c38b9bc1..04082d16 100644 --- a/grudge/op.py +++ b/grudge/op.py @@ -70,7 +70,6 @@ from meshmode.mesh import BTAG_ALL, BTAG_NONE, BTAG_PARTITION # noqa from meshmode.dof_array import freeze, flatten, unflatten from grudge.symbolic.primitives import TracePair -from grudge import sym, bind # {{{ tags -- GitLab