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

add a namedtuple for parameters to Project struct

parent dc8bfb13
No related branches found
No related tags found
1 merge request!71Implement regularizations for Euler eq
This commit is part of merge request !71. Comments created here will be created in the context of that merge request.
......@@ -10,7 +10,8 @@ function Project(env::Environment, mesh::Mesh1d, prms)
hrsc = HRSC.make_HRSC(env.mesh, prms["HRSC"])
bdrycond = dg1d.DirichletBC2()
P = Project(equation, hrsc, tci, 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!
......
......@@ -10,12 +10,14 @@ end
mutable struct Project{T_Equation <:EulerEquation,
T_HRSC <:Maybe{HRSC.AbstractHRSC},
T_TCI <:Maybe{TCI.AbstractTCI},
T_BC}
T_BC,
T_Prms<:NamedTuple}
equation::T_Equation
hrsc::T_HRSC
tci::T_TCI
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