Merge pull request #192 from wanqing0421/main

fix the cuda build error with multiRotatingAxis
This commit is contained in:
PhasicFlow 2025-03-20 01:03:30 +03:30 committed by GitHub
commit 97e6592524
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View File

@ -187,6 +187,7 @@ public:
* It is assumed that the axis with deepest level (with more parrents) is
* moved first and then the axis with lower levels.
*/
INLINE_FUNCTION_HD
void move(real dt)
{

View File

@ -39,7 +39,6 @@ void pFlow::multiRotatingAxisMotion::impl_setTime
bool pFlow::multiRotatingAxisMotion::impl_move(uint32 iter, real t , real dt ) const
{
auto motion = motionComponents_.deviceViewAll();
Kokkos::parallel_for(
"multiRotatingAxisMotion::impl_move",

View File

@ -77,8 +77,7 @@ protected:
return true;
}
/// move the component itself
bool impl_move(uint32 iter, real t, real dt)const;
/// Read from dictionary
bool impl_readDictionary(const dictionary& dict);
@ -108,6 +107,9 @@ public:
// TODO: make this method protected
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