Commit 850c1bef authored by Tianbai Xiao's avatar Tianbai Xiao
Browse files

Reorganize & Document


Former-commit-id: 1c262c4f
parent c7af2e37
...@@ -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() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment