1#!/usr/bin/env python3 2# Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors 3# All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4# 5# SPDX-License-Identifier: BSD-2-Clause 6# 7# This file is part of CEED: http://github.com/ceed 8 9import pytest 10from argparse import Namespace 11import ex1_volume 12import ex2_surface 13import ex3_volume 14 15# ------------------------------------------------------------------------------- 16 17 18def test_101(ceed_resource): 19 args = Namespace( 20 ceed=ceed_resource, 21 dim=1, 22 mesh_degree=4, 23 solution_degree=4, 24 quadrature_points=6, 25 problem_size=-1, 26 test=True, 27 quiet=True, 28 gallery=False, 29 ) 30 ex1_volume.example_1(args) 31 32# ------------------------------------------------------------------------------- 33 34 35def test_101g(ceed_resource): 36 args = Namespace( 37 ceed=ceed_resource, 38 dim=1, 39 mesh_degree=4, 40 solution_degree=4, 41 quadrature_points=6, 42 problem_size=-1, 43 test=True, 44 quiet=True, 45 gallery=True, 46 ) 47 ex1_volume.example_1(args) 48 49# ------------------------------------------------------------------------------- 50 51 52def test_102(ceed_resource): 53 args = Namespace( 54 ceed=ceed_resource, 55 dim=2, 56 mesh_degree=4, 57 solution_degree=4, 58 quadrature_points=6, 59 problem_size=-1, 60 test=True, 61 quiet=True, 62 gallery=False, 63 ) 64 ex1_volume.example_1(args) 65 66# ------------------------------------------------------------------------------- 67 68 69def test_102g(ceed_resource): 70 args = Namespace( 71 ceed=ceed_resource, 72 dim=2, 73 mesh_degree=4, 74 solution_degree=4, 75 quadrature_points=6, 76 problem_size=-1, 77 test=True, 78 quiet=True, 79 gallery=True, 80 ) 81 ex1_volume.example_1(args) 82 83# ------------------------------------------------------------------------------- 84 85 86def test_103(ceed_resource): 87 args = Namespace( 88 ceed=ceed_resource, 89 dim=3, 90 mesh_degree=4, 91 solution_degree=4, 92 quadrature_points=6, 93 problem_size=-1, 94 test=True, 95 quiet=True, 96 gallery=False, 97 ) 98 ex1_volume.example_1(args) 99 100# ------------------------------------------------------------------------------- 101 102 103def test_103g(ceed_resource): 104 args = Namespace( 105 ceed=ceed_resource, 106 dim=3, 107 mesh_degree=4, 108 solution_degree=4, 109 quadrature_points=6, 110 problem_size=-1, 111 test=True, 112 quiet=True, 113 gallery=True, 114 ) 115 ex1_volume.example_1(args) 116 117 118# ------------------------------------------------------------------------------- 119def test_201(ceed_resource): 120 args = Namespace( 121 ceed=ceed_resource, 122 dim=1, 123 mesh_degree=4, 124 solution_degree=4, 125 quadrature_points=6, 126 problem_size=-1, 127 test=True, 128 quiet=True, 129 gallery=False, 130 ) 131 ex2_surface.example_2(args) 132 133# ------------------------------------------------------------------------------- 134 135 136def test_201g(ceed_resource): 137 args = Namespace( 138 ceed=ceed_resource, 139 dim=1, 140 mesh_degree=4, 141 solution_degree=4, 142 quadrature_points=6, 143 problem_size=-1, 144 test=True, 145 quiet=True, 146 gallery=True, 147 ) 148 ex2_surface.example_2(args) 149 150# ------------------------------------------------------------------------------- 151 152 153def test_202(ceed_resource): 154 args = Namespace( 155 ceed=ceed_resource, 156 dim=2, 157 mesh_degree=4, 158 solution_degree=4, 159 quadrature_points=6, 160 problem_size=-1, 161 test=True, 162 quiet=True, 163 gallery=False, 164 ) 165 ex2_surface.example_2(args) 166 167# ------------------------------------------------------------------------------- 168 169 170def test_202g(ceed_resource): 171 args = Namespace( 172 ceed=ceed_resource, 173 dim=2, 174 mesh_degree=4, 175 solution_degree=4, 176 quadrature_points=6, 177 problem_size=-1, 178 test=True, 179 quiet=True, 180 gallery=True, 181 ) 182 ex2_surface.example_2(args) 183 184# ------------------------------------------------------------------------------- 185 186 187def test_203(ceed_resource): 188 args = Namespace( 189 ceed=ceed_resource, 190 dim=3, 191 mesh_degree=4, 192 solution_degree=4, 193 quadrature_points=6, 194 problem_size=-1, 195 test=True, 196 quiet=True, 197 gallery=False, 198 ) 199 ex2_surface.example_2(args) 200 201# ------------------------------------------------------------------------------- 202 203 204def test_203g(ceed_resource): 205 args = Namespace( 206 ceed=ceed_resource, 207 dim=3, 208 mesh_degree=4, 209 solution_degree=4, 210 quadrature_points=6, 211 problem_size=-1, 212 test=True, 213 quiet=True, 214 gallery=True, 215 ) 216 ex2_surface.example_2(args) 217 218# ------------------------------------------------------------------------------- 219 220 221def test_301(ceed_resource): 222 args = Namespace( 223 ceed=ceed_resource, 224 dim=1, 225 mesh_degree=4, 226 solution_degree=4, 227 quadrature_points=6, 228 problem_size=-1, 229 test=True, 230 quiet=True, 231 gallery=False, 232 ) 233 ex3_volume.example_3(args) 234 235# ------------------------------------------------------------------------------- 236 237 238def test_302(ceed_resource): 239 args = Namespace( 240 ceed=ceed_resource, 241 dim=2, 242 mesh_degree=4, 243 solution_degree=4, 244 quadrature_points=6, 245 problem_size=-1, 246 test=True, 247 quiet=True, 248 gallery=False, 249 ) 250 ex3_volume.example_3(args) 251 252# ------------------------------------------------------------------------------- 253 254 255def test_303(ceed_resource): 256 args = Namespace( 257 ceed=ceed_resource, 258 dim=3, 259 mesh_degree=4, 260 solution_degree=4, 261 quadrature_points=6, 262 problem_size=-1, 263 test=True, 264 quiet=True, 265 gallery=False, 266 ) 267 ex3_volume.example_3(args) 268 269# ------------------------------------------------------------------------------- 270