Skip to content
Snippets Groups Projects
Commit 078521f1 authored by Florian Atteneder's avatar Florian Atteneder
Browse files

add a namedtuple for parameters to Project struct

parent e86dc4bf
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !71. Comments created here will be created in the context of that merge request.
......@@ -12,7 +12,8 @@ function Project(env::Environment, mesh::Mesh1d, prms)
ldg_rsolver, av_rsolver = nothing, nothing
bdrycond = dg1d.DirichletBC2()
P = Project(equation, rsolver, hrsc, tci, ldg_rsolver, av_rsolver, bdrycond)
fixedprms = (; av_regularization=Symbol(prms["EulerEq"]["av_regularization"]))
P = Project(equation, rsolver, hrsc, tci, ldg_rsolver, av_rsolver, bdrycond, fixedprms)
# register variables
# TODO add a ::Nothing overload for register_variables!
......
......@@ -13,7 +13,8 @@ mutable struct Project{T_Equation <:EulerEquation,
T_TCI <:Maybe{TCI.AbstractTCI},
T_LDG_RSolver<:Maybe{AbstractRiemannSolver},
T_AV_RSolver<:Maybe{AbstractRiemannSolver},
T_BC}
T_BC,
T_Prms<:NamedTuple}
equation::T_Equation
rsolver::T_RSolver
......@@ -22,6 +23,7 @@ mutable struct Project{T_Equation <:EulerEquation,
ldg_rsolver::T_LDG_RSolver
av_rsolver::T_AV_RSolver
bdrycond::T_BC
prms::T_Prms
end
mutable struct Project2d{T_Equation <:EulerEquation2d,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment