Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KiT-RT
KiT-RT
Commits
850c1bef
Commit
850c1bef
authored
Dec 02, 2020
by
Tianbai Xiao
Browse files
Reorganize & Document
Former-commit-id:
1c262c4f
parent
c7af2e37
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/src/solvers/solverbase.cpp
View file @
850c1bef
...
@@ -29,12 +29,12 @@ Solver::Solver( Config* settings ) : _settings( settings ) {
...
@@ -29,12 +29,12 @@ Solver::Solver( Config* settings ) : _settings( settings ) {
_nq
=
_quadrature
->
GetNq
();
_nq
=
_quadrature
->
GetNq
();
_settings
->
SetNQuadPoints
(
_nq
);
_settings
->
SetNQuadPoints
(
_nq
);
auto
nodes
=
_mesh
->
GetNodes
();
// build slope related params
auto
cells
=
_mesh
->
GetCells
();
_reconstructor
=
Reconstructor
::
Create
(
settings
);
_reconstructor
=
Reconstructor
::
Create
(
settings
);
_reconsOrder
=
_reconstructor
->
GetReconsOrder
();
_reconsOrder
=
_reconstructor
->
GetReconsOrder
();
auto
nodes
=
_mesh
->
GetNodes
();
auto
cells
=
_mesh
->
GetCells
();
std
::
vector
<
std
::
vector
<
Vector
>>
interfaceMidPoints
(
_nCells
,
std
::
vector
<
Vector
>
(
_mesh
->
GetNumNodesPerCell
(),
Vector
(
2
,
1e-10
)
)
);
std
::
vector
<
std
::
vector
<
Vector
>>
interfaceMidPoints
(
_nCells
,
std
::
vector
<
Vector
>
(
_mesh
->
GetNumNodesPerCell
(),
Vector
(
2
,
1e-10
)
)
);
for
(
unsigned
idx_cell
=
0
;
idx_cell
<
_nCells
;
++
idx_cell
)
{
for
(
unsigned
idx_cell
=
0
;
idx_cell
<
_nCells
;
++
idx_cell
)
{
for
(
unsigned
k
=
0
;
k
<
_mesh
->
GetDim
();
++
k
)
{
for
(
unsigned
k
=
0
;
k
<
_mesh
->
GetDim
();
++
k
)
{
...
@@ -48,10 +48,8 @@ Solver::Solver( Config* settings ) : _settings( settings ) {
...
@@ -48,10 +48,8 @@ Solver::Solver( Config* settings ) : _settings( settings ) {
_interfaceMidPoints
=
interfaceMidPoints
;
_interfaceMidPoints
=
interfaceMidPoints
;
_cellMidPoints
=
_mesh
->
GetCellMidPoints
();
_cellMidPoints
=
_mesh
->
GetCellMidPoints
();
VectorVector
psiDx
(
_nCells
,
Vector
(
_nq
,
0.0
)
);
_psiDx
=
VectorVector
(
_nCells
,
Vector
(
_nq
,
0.0
)
);
VectorVector
psiDy
(
_nCells
,
Vector
(
_nq
,
0.0
)
);
_psiDy
=
VectorVector
(
_nCells
,
Vector
(
_nq
,
0.0
)
);
_psiDx
=
psiDx
;
_psiDy
=
psiDy
;
// set time step
// set time step
_dE
=
ComputeTimeStep
(
settings
->
GetCFL
()
);
_dE
=
ComputeTimeStep
(
settings
->
GetCFL
()
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment