Skip to content

Commit

Permalink
correctly creating backward euler
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Dec 19, 2024
1 parent b70bad6 commit 34e8e5b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/micm/micm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,11 @@ namespace musica
solver_parameters_ = std::make_unique<micm::SolverParameters>(solver_config.GetSolverParams());

auto solver = std::make_unique<BackwardEuler>(
micm::SolverBuilder<
micm::CpuSolverBuilder<
micm::BackwardEulerSolverParameters,
micm::VectorMatrix<double, MICM_VECTOR_MATRIX_SIZE>,
micm::SparseMatrix<double, micm::SparseMatrixVectorOrdering<MICM_VECTOR_MATRIX_SIZE>>,
micm::ProcessSet,
micm::LinearSolver<
micm::SparseMatrix<double, micm::SparseMatrixVectorOrdering<MICM_VECTOR_MATRIX_SIZE>>,
micm::LuDecomposition>,
VectorState>(micm::BackwardEulerSolverParameters())
micm::LuDecompositionDoolittle>(micm::BackwardEulerSolverParameters())
.SetSystem(solver_parameters_->system_)
.SetReactions(solver_parameters_->processes_)
.SetNumberOfGridCells(num_grid_cells_)
Expand Down

0 comments on commit 34e8e5b

Please sign in to comment.