/home/runner/work/kynema/kynema/kynema/src/system/springs/calculate_distance_components.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/system/springs/calculate_distance_components.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
calculate_distance_components.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Kokkos_Core.hpp>
4
5namespace kynema::springs {
6
7template <typename DeviceType>
9 template <typename ValueType>
10 using View = Kokkos::View<ValueType, DeviceType>;
11 template <typename ValueType>
13
15 const ConstView<double[3]>& x0, const ConstView<double[3]>& u1,
16 const ConstView<double[3]>& u2, const View<double[3]>& r
17 ) {
18 for (auto component = 0; component < 3; ++component) {
20 }
21 }
22};
23} // namespace kynema::springs
Definition calculate_distance_components.hpp:5
Definition calculate_distance_components.hpp:8
static KOKKOS_FUNCTION void invoke(const ConstView< double[3]> &x0, const ConstView< double[3]> &u1, const ConstView< double[3]> &u2, const View< double[3]> &r)
Definition calculate_distance_components.hpp:14
Kokkos::View< ValueType, DeviceType > View
Definition calculate_distance_components.hpp:10
typename View< ValueType >::const_type ConstView
Definition calculate_distance_components.hpp:12