@@ -16,24 +16,28 @@ function Trixi.SemidiscretizationHyperbolic(mesh::P4estMesh{2},
1616 # `RealT` is used as real type for node locations etc.
1717 # while `uEltype` is used as element type of solutions etc.
1818 RealT = real (solver), uEltype = RealT,
19- initial_cache = NamedTuple (),
2019 metric_terms = MetricTermsCrossProduct (),
2120 auxiliary_field = nothing )
2221 cache = (;
2322 Trixi. create_cache (mesh, equations, solver, RealT, metric_terms,
24- auxiliary_field, uEltype)... , initial_cache ... )
23+ auxiliary_field, uEltype)... )
2524 _boundary_conditions = Trixi. digest_boundary_conditions (boundary_conditions, mesh,
2625 solver,
2726 cache)
2827
28+ Trixi. check_periodicity_mesh_boundary_conditions (mesh, _boundary_conditions)
29+
30+ performance_counter = Trixi. PerformanceCounter ()
31+
2932 SemidiscretizationHyperbolic{typeof (mesh), typeof (equations),
3033 typeof (initial_condition),
3134 typeof (_boundary_conditions), typeof (source_terms),
3235 typeof (solver), typeof (cache)}(mesh, equations,
3336 initial_condition,
3437 _boundary_conditions,
3538 source_terms, solver,
36- cache)
39+ cache,
40+ performance_counter)
3741end
3842
3943# Constructor for SemidiscretizationHyperbolic for the covariant form. Requires
@@ -49,23 +53,27 @@ function Trixi.SemidiscretizationHyperbolic(mesh::P4estMesh{NDIMS, NDIMS_AMBIENT
4953 # `RealT` is used as real type for node locations etc.
5054 # while `uEltype` is used as element type of solutions etc.
5155 RealT = real (solver), uEltype = RealT,
52- initial_cache = NamedTuple (),
5356 metric_terms = MetricTermsCovariantSphere (),
5457 auxiliary_field = nothing ) where {NDIMS,
5558 NDIMS_AMBIENT}
5659 cache = (;
5760 Trixi. create_cache (mesh, equations, solver, RealT, metric_terms,
58- auxiliary_field, uEltype)... , initial_cache ... )
61+ auxiliary_field, uEltype)... )
5962 _boundary_conditions = Trixi. digest_boundary_conditions (boundary_conditions, mesh,
6063 solver,
6164 cache)
6265
66+ Trixi. check_periodicity_mesh_boundary_conditions (mesh, _boundary_conditions)
67+
68+ performance_counter = Trixi. PerformanceCounter ()
69+
6370 SemidiscretizationHyperbolic{typeof (mesh), typeof (equations),
6471 typeof (initial_condition),
6572 typeof (_boundary_conditions), typeof (source_terms),
6673 typeof (solver), typeof (cache)}(mesh, equations,
6774 initial_condition,
6875 _boundary_conditions,
6976 source_terms, solver,
70- cache)
77+ cache,
78+ performance_counter)
7179end
0 commit comments