17b3ff069SJeremy L Thompson#!/usr/bin/env python3 2*9ba83ac0SJeremy L Thompson# Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors 37b3ff069SJeremy L Thompson# All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 47b3ff069SJeremy L Thompson# 57b3ff069SJeremy L Thompson# SPDX-License-Identifier: BSD-2-Clause 67b3ff069SJeremy L Thompson# 77b3ff069SJeremy L Thompson# This file is part of CEED: http://github.com/ceed 87b3ff069SJeremy L Thompson 97b3ff069SJeremy L Thompsonimport pytest 107b3ff069SJeremy L Thompsonfrom argparse import Namespace 117b3ff069SJeremy L Thompsonimport ex1_volume 127b3ff069SJeremy L Thompsonimport ex2_surface 137b3ff069SJeremy L Thompsonimport ex3_volume 147b3ff069SJeremy L Thompson 157b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 167b3ff069SJeremy L Thompson 177b3ff069SJeremy L Thompson 187b3ff069SJeremy L Thompsondef test_101(ceed_resource): 197b3ff069SJeremy L Thompson args = Namespace( 207b3ff069SJeremy L Thompson ceed=ceed_resource, 217b3ff069SJeremy L Thompson dim=1, 227b3ff069SJeremy L Thompson mesh_degree=4, 237b3ff069SJeremy L Thompson solution_degree=4, 247b3ff069SJeremy L Thompson quadrature_points=6, 257b3ff069SJeremy L Thompson problem_size=-1, 267b3ff069SJeremy L Thompson test=True, 277b3ff069SJeremy L Thompson quiet=True, 287b3ff069SJeremy L Thompson gallery=False, 297b3ff069SJeremy L Thompson ) 307b3ff069SJeremy L Thompson ex1_volume.example_1(args) 317b3ff069SJeremy L Thompson 327b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 337b3ff069SJeremy L Thompson 347b3ff069SJeremy L Thompson 357b3ff069SJeremy L Thompsondef test_101g(ceed_resource): 367b3ff069SJeremy L Thompson args = Namespace( 377b3ff069SJeremy L Thompson ceed=ceed_resource, 387b3ff069SJeremy L Thompson dim=1, 397b3ff069SJeremy L Thompson mesh_degree=4, 407b3ff069SJeremy L Thompson solution_degree=4, 417b3ff069SJeremy L Thompson quadrature_points=6, 427b3ff069SJeremy L Thompson problem_size=-1, 437b3ff069SJeremy L Thompson test=True, 447b3ff069SJeremy L Thompson quiet=True, 457b3ff069SJeremy L Thompson gallery=True, 467b3ff069SJeremy L Thompson ) 477b3ff069SJeremy L Thompson ex1_volume.example_1(args) 487b3ff069SJeremy L Thompson 497b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 507b3ff069SJeremy L Thompson 517b3ff069SJeremy L Thompson 527b3ff069SJeremy L Thompsondef test_102(ceed_resource): 537b3ff069SJeremy L Thompson args = Namespace( 547b3ff069SJeremy L Thompson ceed=ceed_resource, 557b3ff069SJeremy L Thompson dim=2, 567b3ff069SJeremy L Thompson mesh_degree=4, 577b3ff069SJeremy L Thompson solution_degree=4, 587b3ff069SJeremy L Thompson quadrature_points=6, 597b3ff069SJeremy L Thompson problem_size=-1, 607b3ff069SJeremy L Thompson test=True, 617b3ff069SJeremy L Thompson quiet=True, 627b3ff069SJeremy L Thompson gallery=False, 637b3ff069SJeremy L Thompson ) 647b3ff069SJeremy L Thompson ex1_volume.example_1(args) 657b3ff069SJeremy L Thompson 667b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 677b3ff069SJeremy L Thompson 687b3ff069SJeremy L Thompson 697b3ff069SJeremy L Thompsondef test_102g(ceed_resource): 707b3ff069SJeremy L Thompson args = Namespace( 717b3ff069SJeremy L Thompson ceed=ceed_resource, 727b3ff069SJeremy L Thompson dim=2, 737b3ff069SJeremy L Thompson mesh_degree=4, 747b3ff069SJeremy L Thompson solution_degree=4, 757b3ff069SJeremy L Thompson quadrature_points=6, 767b3ff069SJeremy L Thompson problem_size=-1, 777b3ff069SJeremy L Thompson test=True, 787b3ff069SJeremy L Thompson quiet=True, 797b3ff069SJeremy L Thompson gallery=True, 807b3ff069SJeremy L Thompson ) 817b3ff069SJeremy L Thompson ex1_volume.example_1(args) 827b3ff069SJeremy L Thompson 837b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 847b3ff069SJeremy L Thompson 857b3ff069SJeremy L Thompson 867b3ff069SJeremy L Thompsondef test_103(ceed_resource): 877b3ff069SJeremy L Thompson args = Namespace( 887b3ff069SJeremy L Thompson ceed=ceed_resource, 897b3ff069SJeremy L Thompson dim=3, 907b3ff069SJeremy L Thompson mesh_degree=4, 917b3ff069SJeremy L Thompson solution_degree=4, 927b3ff069SJeremy L Thompson quadrature_points=6, 937b3ff069SJeremy L Thompson problem_size=-1, 947b3ff069SJeremy L Thompson test=True, 957b3ff069SJeremy L Thompson quiet=True, 967b3ff069SJeremy L Thompson gallery=False, 977b3ff069SJeremy L Thompson ) 987b3ff069SJeremy L Thompson ex1_volume.example_1(args) 997b3ff069SJeremy L Thompson 1007b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 1017b3ff069SJeremy L Thompson 1027b3ff069SJeremy L Thompson 1037b3ff069SJeremy L Thompsondef test_103g(ceed_resource): 1047b3ff069SJeremy L Thompson args = Namespace( 1057b3ff069SJeremy L Thompson ceed=ceed_resource, 1067b3ff069SJeremy L Thompson dim=3, 1077b3ff069SJeremy L Thompson mesh_degree=4, 1087b3ff069SJeremy L Thompson solution_degree=4, 1097b3ff069SJeremy L Thompson quadrature_points=6, 1107b3ff069SJeremy L Thompson problem_size=-1, 1117b3ff069SJeremy L Thompson test=True, 1127b3ff069SJeremy L Thompson quiet=True, 1137b3ff069SJeremy L Thompson gallery=True, 1147b3ff069SJeremy L Thompson ) 1157b3ff069SJeremy L Thompson ex1_volume.example_1(args) 1167b3ff069SJeremy L Thompson 1177b3ff069SJeremy L Thompson 1187b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 1197b3ff069SJeremy L Thompsondef test_201(ceed_resource): 1207b3ff069SJeremy L Thompson args = Namespace( 1217b3ff069SJeremy L Thompson ceed=ceed_resource, 1227b3ff069SJeremy L Thompson dim=1, 1237b3ff069SJeremy L Thompson mesh_degree=4, 1247b3ff069SJeremy L Thompson solution_degree=4, 1257b3ff069SJeremy L Thompson quadrature_points=6, 1267b3ff069SJeremy L Thompson problem_size=-1, 1277b3ff069SJeremy L Thompson test=True, 1287b3ff069SJeremy L Thompson quiet=True, 1297b3ff069SJeremy L Thompson gallery=False, 1307b3ff069SJeremy L Thompson ) 1317b3ff069SJeremy L Thompson ex2_surface.example_2(args) 1327b3ff069SJeremy L Thompson 1337b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 1347b3ff069SJeremy L Thompson 1357b3ff069SJeremy L Thompson 1367b3ff069SJeremy L Thompsondef test_201g(ceed_resource): 1377b3ff069SJeremy L Thompson args = Namespace( 1387b3ff069SJeremy L Thompson ceed=ceed_resource, 1397b3ff069SJeremy L Thompson dim=1, 1407b3ff069SJeremy L Thompson mesh_degree=4, 1417b3ff069SJeremy L Thompson solution_degree=4, 1427b3ff069SJeremy L Thompson quadrature_points=6, 1437b3ff069SJeremy L Thompson problem_size=-1, 1447b3ff069SJeremy L Thompson test=True, 1457b3ff069SJeremy L Thompson quiet=True, 1467b3ff069SJeremy L Thompson gallery=True, 1477b3ff069SJeremy L Thompson ) 1487b3ff069SJeremy L Thompson ex2_surface.example_2(args) 1497b3ff069SJeremy L Thompson 1507b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 1517b3ff069SJeremy L Thompson 1527b3ff069SJeremy L Thompson 1537b3ff069SJeremy L Thompsondef test_202(ceed_resource): 1547b3ff069SJeremy L Thompson args = Namespace( 1557b3ff069SJeremy L Thompson ceed=ceed_resource, 1567b3ff069SJeremy L Thompson dim=2, 1577b3ff069SJeremy L Thompson mesh_degree=4, 1587b3ff069SJeremy L Thompson solution_degree=4, 1597b3ff069SJeremy L Thompson quadrature_points=6, 1607b3ff069SJeremy L Thompson problem_size=-1, 1617b3ff069SJeremy L Thompson test=True, 1627b3ff069SJeremy L Thompson quiet=True, 1637b3ff069SJeremy L Thompson gallery=False, 1647b3ff069SJeremy L Thompson ) 1657b3ff069SJeremy L Thompson ex2_surface.example_2(args) 1667b3ff069SJeremy L Thompson 1677b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 1687b3ff069SJeremy L Thompson 1697b3ff069SJeremy L Thompson 1707b3ff069SJeremy L Thompsondef test_202g(ceed_resource): 1717b3ff069SJeremy L Thompson args = Namespace( 1727b3ff069SJeremy L Thompson ceed=ceed_resource, 1737b3ff069SJeremy L Thompson dim=2, 1747b3ff069SJeremy L Thompson mesh_degree=4, 1757b3ff069SJeremy L Thompson solution_degree=4, 1767b3ff069SJeremy L Thompson quadrature_points=6, 1777b3ff069SJeremy L Thompson problem_size=-1, 1787b3ff069SJeremy L Thompson test=True, 1797b3ff069SJeremy L Thompson quiet=True, 1807b3ff069SJeremy L Thompson gallery=True, 1817b3ff069SJeremy L Thompson ) 1827b3ff069SJeremy L Thompson ex2_surface.example_2(args) 1837b3ff069SJeremy L Thompson 1847b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 1857b3ff069SJeremy L Thompson 1867b3ff069SJeremy L Thompson 1877b3ff069SJeremy L Thompsondef test_203(ceed_resource): 1887b3ff069SJeremy L Thompson args = Namespace( 1897b3ff069SJeremy L Thompson ceed=ceed_resource, 1907b3ff069SJeremy L Thompson dim=3, 1917b3ff069SJeremy L Thompson mesh_degree=4, 1927b3ff069SJeremy L Thompson solution_degree=4, 1937b3ff069SJeremy L Thompson quadrature_points=6, 1947b3ff069SJeremy L Thompson problem_size=-1, 1957b3ff069SJeremy L Thompson test=True, 1967b3ff069SJeremy L Thompson quiet=True, 1977b3ff069SJeremy L Thompson gallery=False, 1987b3ff069SJeremy L Thompson ) 1997b3ff069SJeremy L Thompson ex2_surface.example_2(args) 2007b3ff069SJeremy L Thompson 2017b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 2027b3ff069SJeremy L Thompson 2037b3ff069SJeremy L Thompson 2047b3ff069SJeremy L Thompsondef test_203g(ceed_resource): 2057b3ff069SJeremy L Thompson args = Namespace( 2067b3ff069SJeremy L Thompson ceed=ceed_resource, 2077b3ff069SJeremy L Thompson dim=3, 2087b3ff069SJeremy L Thompson mesh_degree=4, 2097b3ff069SJeremy L Thompson solution_degree=4, 2107b3ff069SJeremy L Thompson quadrature_points=6, 2117b3ff069SJeremy L Thompson problem_size=-1, 2127b3ff069SJeremy L Thompson test=True, 2137b3ff069SJeremy L Thompson quiet=True, 2147b3ff069SJeremy L Thompson gallery=True, 2157b3ff069SJeremy L Thompson ) 2167b3ff069SJeremy L Thompson ex2_surface.example_2(args) 2177b3ff069SJeremy L Thompson 2187b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 2197b3ff069SJeremy L Thompson 2207b3ff069SJeremy L Thompson 2217b3ff069SJeremy L Thompsondef test_301(ceed_resource): 2227b3ff069SJeremy L Thompson args = Namespace( 2237b3ff069SJeremy L Thompson ceed=ceed_resource, 2247b3ff069SJeremy L Thompson dim=1, 2257b3ff069SJeremy L Thompson mesh_degree=4, 2267b3ff069SJeremy L Thompson solution_degree=4, 2277b3ff069SJeremy L Thompson quadrature_points=6, 2287b3ff069SJeremy L Thompson problem_size=-1, 2297b3ff069SJeremy L Thompson test=True, 2307b3ff069SJeremy L Thompson quiet=True, 2317b3ff069SJeremy L Thompson gallery=False, 2327b3ff069SJeremy L Thompson ) 2337b3ff069SJeremy L Thompson ex3_volume.example_3(args) 2347b3ff069SJeremy L Thompson 2357b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 2367b3ff069SJeremy L Thompson 2377b3ff069SJeremy L Thompson 2387b3ff069SJeremy L Thompsondef test_302(ceed_resource): 2397b3ff069SJeremy L Thompson args = Namespace( 2407b3ff069SJeremy L Thompson ceed=ceed_resource, 2417b3ff069SJeremy L Thompson dim=2, 2427b3ff069SJeremy L Thompson mesh_degree=4, 2437b3ff069SJeremy L Thompson solution_degree=4, 2447b3ff069SJeremy L Thompson quadrature_points=6, 2457b3ff069SJeremy L Thompson problem_size=-1, 2467b3ff069SJeremy L Thompson test=True, 2477b3ff069SJeremy L Thompson quiet=True, 2487b3ff069SJeremy L Thompson gallery=False, 2497b3ff069SJeremy L Thompson ) 2507b3ff069SJeremy L Thompson ex3_volume.example_3(args) 2517b3ff069SJeremy L Thompson 2527b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 2537b3ff069SJeremy L Thompson 2547b3ff069SJeremy L Thompson 2557b3ff069SJeremy L Thompsondef test_303(ceed_resource): 2567b3ff069SJeremy L Thompson args = Namespace( 2577b3ff069SJeremy L Thompson ceed=ceed_resource, 2587b3ff069SJeremy L Thompson dim=3, 2597b3ff069SJeremy L Thompson mesh_degree=4, 2607b3ff069SJeremy L Thompson solution_degree=4, 2617b3ff069SJeremy L Thompson quadrature_points=6, 2627b3ff069SJeremy L Thompson problem_size=-1, 2637b3ff069SJeremy L Thompson test=True, 2647b3ff069SJeremy L Thompson quiet=True, 2657b3ff069SJeremy L Thompson gallery=False, 2667b3ff069SJeremy L Thompson ) 2677b3ff069SJeremy L Thompson ex3_volume.example_3(args) 2687b3ff069SJeremy L Thompson 2697b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 270