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

Kynema API: /home/runner/work/kynema/kynema/kynema/src/step/reset_constraints.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
reset_constraints.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Kokkos_Core.hpp>
4#include <Kokkos_Profiling_ScopedRegion.hpp>
5
7
8namespace kynema::step {
9
10template <typename DeviceType>
11inline void ResetConstraints(Constraints<DeviceType>& constraints) {
12 auto region = Kokkos::Profiling::ScopedRegion("Reset Constraints");
13 Kokkos::deep_copy(constraints.lambda, 0.);
14 Kokkos::deep_copy(constraints.system_residual_terms, 0.);
15}
16
17} // namespace kynema::step
Definition assemble_constraints_matrix.hpp:11
void ResetConstraints(Constraints< DeviceType > &constraints)
Definition reset_constraints.hpp:11
Container class for managing multiple constraints in a simulation.
Definition constraints.hpp:29
View< double *[6]> lambda
Definition constraints.hpp:60
View< double *[6]> system_residual_terms
Definition constraints.hpp:70