你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Add support for VTKHDF snapshots
这个提交包含在:
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
二进制文件未显示。
@@ -67,7 +67,7 @@ class SnapshotMixin(GprMaxMixin):
|
||||
Args:
|
||||
snapshot: Name of the snapshot.
|
||||
"""
|
||||
return Path(f"{self.model}_snaps", snapshot).with_suffix(".h5")
|
||||
return Path(f"{self.model}_snaps", snapshot)
|
||||
|
||||
@run_after("setup")
|
||||
def add_snapshot_regression_checks(self):
|
||||
@@ -82,7 +82,7 @@ class SnapshotMixin(GprMaxMixin):
|
||||
|
||||
for snapshot in self.snapshots:
|
||||
snapshot_file = self.build_snapshot_filepath(snapshot)
|
||||
reference_file = self.build_reference_filepath(snapshot)
|
||||
reference_file = self.build_reference_filepath(snapshot, suffix=snapshot_file.suffix)
|
||||
regression_check = SnapshotRegressionCheck(snapshot_file, reference_file)
|
||||
self.regression_checks.append(regression_check)
|
||||
|
||||
|
@@ -20,3 +20,18 @@
|
||||
#snapshot: 0 0 0.025 0.100 0.100 0.026 0.01 0.01 0.01 2e-9 snapshot_z_25.h5
|
||||
#snapshot: 0 0 0.055 0.100 0.100 0.056 0.01 0.01 0.01 2e-9 snapshot_z_55.h5
|
||||
#snapshot: 0 0 0.055 0.100 0.100 0.086 0.01 0.01 0.01 2e-9 snapshot_z_85.h5
|
||||
|
||||
#snapshot: 0.005 0 0 0.006 0.100 0.100 0.01 0.01 0.01 2e-9 snapshot_x_05.vtkhdf
|
||||
#snapshot: 0.035 0 0 0.036 0.100 0.100 0.01 0.01 0.01 2e-9 snapshot_x_35.vtkhdf
|
||||
#snapshot: 0.065 0 0 0.066 0.100 0.100 0.01 0.01 0.01 2e-9 snapshot_x_65.vtkhdf
|
||||
#snapshot: 0.095 0 0 0.096 0.100 0.100 0.01 0.01 0.01 2e-9 snapshot_x_95.vtkhdf
|
||||
|
||||
#snapshot: 0 0.015 0 0.100 0.016 0.100 0.01 0.01 0.01 2e-9 snapshot_y_15.vtkhdf
|
||||
#snapshot: 0 0.040 0 0.100 0.050 0.100 0.01 0.01 0.01 2e-9 snapshot_y_40.vtkhdf
|
||||
#snapshot: 0 0.045 0 0.100 0.046 0.100 0.01 0.01 0.01 2e-9 snapshot_y_45.vtkhdf
|
||||
#snapshot: 0 0.050 0 0.100 0.051 0.100 0.01 0.01 0.01 2e-9 snapshot_y_50.vtkhdf
|
||||
#snapshot: 0 0.075 0 0.100 0.076 0.100 0.01 0.01 0.01 2e-9 snapshot_y_75.vtkhdf
|
||||
|
||||
#snapshot: 0 0 0.025 0.100 0.100 0.026 0.01 0.01 0.01 2e-9 snapshot_z_25.vtkhdf
|
||||
#snapshot: 0 0 0.055 0.100 0.100 0.056 0.01 0.01 0.01 2e-9 snapshot_z_55.vtkhdf
|
||||
#snapshot: 0 0 0.055 0.100 0.100 0.086 0.01 0.01 0.01 2e-9 snapshot_z_85.vtkhdf
|
||||
|
@@ -10,3 +10,8 @@
|
||||
#snapshot: 0 0 0 0.100 0.100 0.100 0.01 0.01 0.01 1e-9 snapshot_1.h5
|
||||
#snapshot: 0 0 0 0.100 0.100 0.100 0.01 0.01 0.01 2e-9 snapshot_2.h5
|
||||
#snapshot: 0 0 0 0.100 0.100 0.100 0.01 0.01 0.01 3e-9 snapshot_3.h5
|
||||
|
||||
#snapshot: 0 0 0 0.100 0.100 0.100 0.01 0.01 0.01 1 snapshot_0.vtkhdf
|
||||
#snapshot: 0 0 0 0.100 0.100 0.100 0.01 0.01 0.01 1e-9 snapshot_1.vtkhdf
|
||||
#snapshot: 0 0 0 0.100 0.100 0.100 0.01 0.01 0.01 2e-9 snapshot_2.vtkhdf
|
||||
#snapshot: 0 0 0 0.100 0.100 0.100 0.01 0.01 0.01 3e-9 snapshot_3.vtkhdf
|
||||
|
@@ -10,3 +10,8 @@
|
||||
#snapshot: 0 0 0 0.100 0.100 0.001 0.01 0.01 0.01 1e-9 snapshot_1.h5
|
||||
#snapshot: 0 0 0 0.100 0.100 0.001 0.01 0.01 0.01 2e-9 snapshot_2.h5
|
||||
#snapshot: 0 0 0 0.100 0.100 0.001 0.01 0.01 0.01 3e-9 snapshot_3.h5
|
||||
|
||||
#snapshot: 0 0 0 0.100 0.100 0.001 0.01 0.01 0.01 1 snapshot_0.vtkhdf
|
||||
#snapshot: 0 0 0 0.100 0.100 0.001 0.01 0.01 0.01 1e-9 snapshot_1.vtkhdf
|
||||
#snapshot: 0 0 0 0.100 0.100 0.001 0.01 0.01 0.01 2e-9 snapshot_2.vtkhdf
|
||||
#snapshot: 0 0 0 0.100 0.100 0.001 0.01 0.01 0.01 3e-9 snapshot_3.vtkhdf
|
||||
|
@@ -10,7 +10,16 @@ class Test2DSnapshot(GprMaxSnapshotTest):
|
||||
tags = {"test", "serial", "2d", "waveform", "hertzian_dipole", "snapshot"}
|
||||
sourcesdir = "src/snapshot_tests"
|
||||
model = parameter(["whole_domain_2d"])
|
||||
snapshots = ["snapshot_0.h5", "snapshot_1.h5", "snapshot_2.h5", "snapshot_3.h5"]
|
||||
snapshots = [
|
||||
"snapshot_0.h5",
|
||||
"snapshot_1.h5",
|
||||
"snapshot_2.h5",
|
||||
"snapshot_3.h5",
|
||||
"snapshot_0.vtkhdf",
|
||||
"snapshot_1.vtkhdf",
|
||||
"snapshot_2.vtkhdf",
|
||||
"snapshot_3.vtkhdf",
|
||||
]
|
||||
|
||||
|
||||
@rfm.simple_test
|
||||
@@ -18,7 +27,16 @@ class TestSnapshot(GprMaxSnapshotTest):
|
||||
tags = {"test", "serial", "2d", "waveform", "hertzian_dipole", "snapshot"}
|
||||
sourcesdir = "src/snapshot_tests"
|
||||
model = parameter(["whole_domain"])
|
||||
snapshots = ["snapshot_0.h5", "snapshot_1.h5", "snapshot_2.h5", "snapshot_3.h5"]
|
||||
snapshots = [
|
||||
"snapshot_0.h5",
|
||||
"snapshot_1.h5",
|
||||
"snapshot_2.h5",
|
||||
"snapshot_3.h5",
|
||||
"snapshot_0.vtkhdf",
|
||||
"snapshot_1.vtkhdf",
|
||||
"snapshot_2.vtkhdf",
|
||||
"snapshot_3.vtkhdf",
|
||||
]
|
||||
|
||||
|
||||
@rfm.simple_test
|
||||
@@ -39,6 +57,18 @@ class Test2DSliceSnapshot(GprMaxSnapshotTest):
|
||||
"snapshot_z_25.h5",
|
||||
"snapshot_z_55.h5",
|
||||
"snapshot_z_85.h5",
|
||||
"snapshot_x_05.vtkhdf",
|
||||
"snapshot_x_35.vtkhdf",
|
||||
"snapshot_x_65.vtkhdf",
|
||||
"snapshot_x_95.vtkhdf",
|
||||
"snapshot_y_15.vtkhdf",
|
||||
"snapshot_y_40.vtkhdf",
|
||||
"snapshot_y_45.vtkhdf",
|
||||
"snapshot_y_50.vtkhdf",
|
||||
"snapshot_y_75.vtkhdf",
|
||||
"snapshot_z_25.vtkhdf",
|
||||
"snapshot_z_55.vtkhdf",
|
||||
"snapshot_z_85.vtkhdf",
|
||||
]
|
||||
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户