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

Kynema API: /home/runner/work/kynema/kynema/kynema/src/system/springs/calculate_length.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
calculate_length.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>
8KOKKOS_INLINE_FUNCTION double CalculateLength(
9 const typename Kokkos::View<double[3], DeviceType>::const_type& r
10) {
11 return Kokkos::sqrt(r(0) * r(0) + r(1) * r(1) + r(2) * r(2));
12}
13
14} // namespace kynema::springs
Definition calculate_distance_components.hpp:5
KOKKOS_INLINE_FUNCTION double CalculateLength(const typename Kokkos::View< double[3], DeviceType >::const_type &r)
Definition calculate_length.hpp:8