Merge pull request #192 from wanqing0421/main
fix the cuda build error with multiRotatingAxis
This commit is contained in:
commit
97e6592524
|
@ -187,6 +187,7 @@ public:
|
||||||
* It is assumed that the axis with deepest level (with more parrents) is
|
* It is assumed that the axis with deepest level (with more parrents) is
|
||||||
* moved first and then the axis with lower levels.
|
* moved first and then the axis with lower levels.
|
||||||
*/
|
*/
|
||||||
|
INLINE_FUNCTION_HD
|
||||||
void move(real dt)
|
void move(real dt)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,6 @@ void pFlow::multiRotatingAxisMotion::impl_setTime
|
||||||
|
|
||||||
bool pFlow::multiRotatingAxisMotion::impl_move(uint32 iter, real t , real dt ) const
|
bool pFlow::multiRotatingAxisMotion::impl_move(uint32 iter, real t , real dt ) const
|
||||||
{
|
{
|
||||||
|
|
||||||
auto motion = motionComponents_.deviceViewAll();
|
auto motion = motionComponents_.deviceViewAll();
|
||||||
Kokkos::parallel_for(
|
Kokkos::parallel_for(
|
||||||
"multiRotatingAxisMotion::impl_move",
|
"multiRotatingAxisMotion::impl_move",
|
||||||
|
|
|
@ -77,8 +77,7 @@ protected:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// move the component itself
|
|
||||||
bool impl_move(uint32 iter, real t, real dt)const;
|
|
||||||
|
|
||||||
/// Read from dictionary
|
/// Read from dictionary
|
||||||
bool impl_readDictionary(const dictionary& dict);
|
bool impl_readDictionary(const dictionary& dict);
|
||||||
|
@ -108,6 +107,9 @@ public:
|
||||||
|
|
||||||
// TODO: make this method protected
|
// TODO: make this method protected
|
||||||
void impl_setTime(uint32 iter, real t, real dt)const;
|
void impl_setTime(uint32 iter, real t, real dt)const;
|
||||||
|
|
||||||
|
/// move the component itself
|
||||||
|
bool impl_move(uint32 iter, real t, real dt)const;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // pFlow
|
} // pFlow
|
||||||
|
|
Loading…
Reference in New Issue