diff --git a/modules/ray_tracing/test/include/userobjects/TestPICRayStudy.h b/modules/ray_tracing/test/include/userobjects/TestPICRayStudy.h index 871c5fc494cf..d3d86a9a82a6 100644 --- a/modules/ray_tracing/test/include/userobjects/TestPICRayStudy.h +++ b/modules/ray_tracing/test/include/userobjects/TestPICRayStudy.h @@ -44,9 +44,9 @@ class TestPICRayStudy : public RayTracingStudy /// The function that represents the velocity field const Function & _velocity_function; - /// Whether or not we've generated rays yet - bool _has_generated; + /// Whether or not we've generated rays yet (restartable) + bool & _has_generated; - /// The banked rays to be used on the next timestep - std::vector> _banked_rays; + /// The banked rays to be used on the next timestep (restartable) + std::vector> & _banked_rays; }; diff --git a/modules/ray_tracing/test/src/userobjects/TestPICRayStudy.C b/modules/ray_tracing/test/src/userobjects/TestPICRayStudy.C index b6a51ca13c39..94900ba063da 100644 --- a/modules/ray_tracing/test/src/userobjects/TestPICRayStudy.C +++ b/modules/ray_tracing/test/src/userobjects/TestPICRayStudy.C @@ -39,7 +39,9 @@ TestPICRayStudy::TestPICRayStudy(const InputParameters & parameters) _start_points(getParam>("start_points")), _start_directions(getParam>("start_directions")), _velocity_function(getFunction("velocity_function")), - _has_generated(false) + _has_generated(declareRestartableData("has_generated", false)), + _banked_rays( + declareRestartableDataWithContext>>("_banked_rays", this)) { if (_start_points.size() != _start_directions.size()) paramError("start_directions", "Must be the same size as 'start_points'"); diff --git a/modules/ray_tracing/test/tests/userobjects/test_pic_ray_study/tests b/modules/ray_tracing/test/tests/userobjects/test_pic_ray_study/tests index 47bb54acdafe..c10818ef9965 100644 --- a/modules/ray_tracing/test/tests/userobjects/test_pic_ray_study/tests +++ b/modules/ray_tracing/test/tests/userobjects/test_pic_ray_study/tests @@ -5,7 +5,16 @@ [pic] type = 'Exodiff' input = 'pic_ray_study.i' - exodiff = 'pic_ray_study_rays.e' + exodiff = 'pic_ray_study_rays.e + pic_ray_study_rays.e-s0001 + pic_ray_study_rays.e-s0002 + pic_ray_study_rays.e-s0003 + pic_ray_study_rays.e-s0004 + pic_ray_study_rays.e-s0005 + pic_ray_study_rays.e-s0006 + pic_ray_study_rays.e-s0007 + pic_ray_study_rays.e-s0008 + pic_ray_study_rays.e-s0009' allow_test_objects = tru requirement = 'The system shall support the propagation of rays for particle-in-cell capability by tracing rays via a temporally and spatially varying velocity in time' []