10 solver.numerical_scheme = scheme
12 scheme.kernel_namespace = [
"probe"]
17 assert exahype2.api.VolumetricSource.SIGNATURE == (
18 "const double* __restrict__ Q, "
19 "const tarch::la::Vector<Dimensions, double>& x, "
21 "double* __restrict__ S"
27 call = scheme._RusanovWithOptimisticExplicitEuler__construct_kernel_call(
28 exahype2.api.Target.Serial,
False
30 assert "repositories::instanceOfProbe.volumetricSource(Q, x, t, S);" in call
35 scheme._RusanovWithOptimisticExplicitEuler__create_time_step_functions(
38 kernels = tmp_path /
"kernels"
42 "Probe_rusanov2d_patch_interior",
43 "Probe_rusanov2d_shell",
44 "Probe_rusanov3d_patch_interior",
45 "Probe_rusanov3d_shell",
47 header = (kernels / (name +
".h")).read_text()
49 "const ::exahype2::fv::rusanov::VolumetricSourceFunctor& volumetricSource"
52 assert "volumetricSource(" in (kernels / (name +
".cpph")).read_text(), name
Point-wise initial condition: given the physical position of a single degree of freedom,...
The maximum absolute eigenvalue of the flux Jacobian in a given direction, i.e.
Abstract base class for all ExaHyPE 2 solvers.
The algebraic, volume-distributed source term S(Q) of a hyperbolic PDE - as opposed to PointSource,...
Finite Volumes with a Rusanov Riemann solver and optimistic explicit Euler time stepping,...
test_kernel_call_forwards_volumetric_source()
test_optimistic_kernels_evaluate_volumetric_source(tmp_path)
_scheme_with_volumetric_source()
test_volumetric_source_signature_has_location_and_time_stamp_only()