你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
43 行
1.3 KiB
Python
43 行
1.3 KiB
Python
import reframe as rfm
|
|
from reframe.core.builtins import parameter
|
|
|
|
from reframe_tests.tests.base_tests import GprMaxMPIRegressionTest, GprMaxRegressionTest
|
|
|
|
|
|
@rfm.simple_test
|
|
class Test2DSnapshot(GprMaxRegressionTest):
|
|
tags = {"test", "serial", "2d", "waveform", "hertzian_dipole", "snapshot"}
|
|
sourcesdir = "src/snapshot_tests"
|
|
model = parameter(["whole_domain_2d"])
|
|
has_receiver_output = False
|
|
snapshots = ["snapshot.h5"]
|
|
|
|
|
|
@rfm.simple_test
|
|
class TestSnapshot(GprMaxRegressionTest):
|
|
tags = {"test", "serial", "2d", "waveform", "hertzian_dipole", "snapshot"}
|
|
sourcesdir = "src/snapshot_tests"
|
|
model = parameter(["whole_domain"])
|
|
has_receiver_output = False
|
|
snapshots = ["snapshot.h5"]
|
|
|
|
|
|
"""Test MPI Functionality
|
|
"""
|
|
|
|
|
|
@rfm.simple_test
|
|
class Test2DSnapshotMpi(GprMaxMPIRegressionTest):
|
|
tags = {"test", "mpi", "2d", "waveform", "hertzian_dipole", "snapshot"}
|
|
mpi_layout = parameter([[2, 2, 1], [3, 3, 1], [4, 4, 1]])
|
|
serial_dependency = Test2DSnapshot
|
|
model = serial_dependency.model
|
|
|
|
|
|
@rfm.simple_test
|
|
class TestSnapshotMpi(GprMaxMPIRegressionTest):
|
|
tags = {"test", "mpi", "2d", "waveform", "hertzian_dipole", "snapshot"}
|
|
mpi_layout = parameter([[2, 2, 2], [3, 3, 3], [4, 4, 4]])
|
|
serial_dependency = TestSnapshot
|
|
model = serial_dependency.model
|