From 7e6eb8014fc898bb4c7ae166d26b681c7b61cfba Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Tue, 5 Nov 2024 22:46:25 -0600 Subject: [PATCH] Updating GQ test and adding a gold file --- test/gold/ellipsoid.jou | 19 +++++++++++++++++++ test/test_local.py | 1 + 2 files changed, 20 insertions(+) create mode 100644 test/gold/ellipsoid.jou diff --git a/test/gold/ellipsoid.jou b/test/gold/ellipsoid.jou new file mode 100644 index 0000000..4745421 --- /dev/null +++ b/test/gold/ellipsoid.jou @@ -0,0 +1,19 @@ +set echo off +set info off +set warning off +graphics pause +set journal off +set default autosize off +#CELL 1 +sphere radius 1 +#{ id1 = Id("body") } +body { id1 } scale x 1.0 y 0.7071067811865476 z 0.5773502691896257 +body { None } name "Cell_1" +group "mat:void" add body { None } +graphics flush +set default autosize on +zoom reset +set echo on +set info on +set warning on +set journal on diff --git a/test/test_local.py b/test/test_local.py index 2d87c64..31479f7 100644 --- a/test/test_local.py +++ b/test/test_local.py @@ -128,3 +128,4 @@ def test_gq_ellipsoid(request): ellipsoid = openmc.Quadric(1, 2, 3, k=1) g = openmc.Geometry([openmc.Cell(region=-ellipsoid)]) to_cubit_journal(g, world=(500, 500, 500), filename='ellipsoid.jou') + diff_gold_file('ellipsoid.jou')