/home/runner/work/kynema/kynema/kynema/src/step/reset_solver.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/step/reset_solver.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
reset_solver.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Kokkos_Core.hpp>
4#include <Kokkos_Profiling_ScopedRegion.hpp>
5
6#include "solver/solver.hpp"
7
8namespace kynema::step {
9
10template <typename DeviceType>
11inline void ResetSolver(Solver<DeviceType>& solver) {
12 auto region = Kokkos::Profiling::ScopedRegion("Reset Solver");
13 Kokkos::deep_copy(solver.A.values, 0.);
14 Kokkos::deep_copy(solver.b, 0.);
15}
16
17} // namespace kynema::step
Definition assemble_constraints_matrix.hpp:11
void ResetSolver(Solver< DeviceType > &solver)
Definition reset_solver.hpp:11
This object manages the assembly and solution of linear system arising from the generalized-alpha bas...
Definition solver.hpp:21
MultiVectorType b
Definition solver.hpp:78
CrsMatrixType A
Definition solver.hpp:77