Skip to content
Snippets Groups Projects
Commit 4f8e7a3b authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Use StaticFor::execHost in mesh executors

parent a76305c0
No related branches found
No related tags found
No related merge requests found
...@@ -167,16 +167,16 @@ public: ...@@ -167,16 +167,16 @@ public:
entities.getData() ); entities.getData() );
// permute superentities storage // permute superentities storage
StaticFor< int, 0, Dimension, SubentitiesStorageWorker >::exec( mesh, perm ); StaticFor< int, 0, Dimension, SubentitiesStorageWorker >::execHost( mesh, perm );
// permute subentities storage // permute subentities storage
StaticFor< int, Dimension + 1, Mesh::getMeshDimension() + 1, SuperentitiesStorageWorker >::exec( mesh, perm ); StaticFor< int, Dimension + 1, Mesh::getMeshDimension() + 1, SuperentitiesStorageWorker >::execHost( mesh, perm );
// update superentity indices from the subentities // update superentity indices from the subentities
StaticFor< int, 0, Dimension, SubentitiesWorker >::exec( mesh, iperm ); StaticFor< int, 0, Dimension, SubentitiesWorker >::execHost( mesh, iperm );
// update subentity indices from the superentities // update subentity indices from the superentities
StaticFor< int, Dimension + 1, Mesh::getMeshDimension() + 1, SuperentitiesWorker >::exec( mesh, iperm ); StaticFor< int, Dimension + 1, Mesh::getMeshDimension() + 1, SuperentitiesWorker >::execHost( mesh, iperm );
} }
}; };
......
...@@ -113,7 +113,7 @@ public: ...@@ -113,7 +113,7 @@ public:
public: public:
static void exec( Mesh& mesh ) static void exec( Mesh& mesh )
{ {
StaticFor< int, 0, Mesh::getMeshDimension() + 1, ResetBoundaryTags >::exec( mesh ); StaticFor< int, 0, Mesh::getMeshDimension() + 1, ResetBoundaryTags >::execHost( mesh );
auto kernel = [] __cuda_callable__ auto kernel = [] __cuda_callable__
( GlobalIndexType faceIndex, ( GlobalIndexType faceIndex,
...@@ -137,7 +137,7 @@ public: ...@@ -137,7 +137,7 @@ public:
kernel, kernel,
&meshPointer.template modifyData< DeviceType >() ); &meshPointer.template modifyData< DeviceType >() );
StaticFor< int, 0, Mesh::getMeshDimension() + 1, UpdateBoundaryIndices >::exec( mesh ); StaticFor< int, 0, Mesh::getMeshDimension() + 1, UpdateBoundaryIndices >::execHost( mesh );
} }
}; };
......
...@@ -47,7 +47,7 @@ public: ...@@ -47,7 +47,7 @@ public:
static SubentitySeedArray create( const SubvertexAccessorType& subvertices ) static SubentitySeedArray create( const SubvertexAccessorType& subvertices )
{ {
SubentitySeedArray subentitySeeds; SubentitySeedArray subentitySeeds;
StaticFor< LocalIndexType, 0, SUBENTITIES_COUNT, CreateSubentitySeeds >::exec( subentitySeeds, subvertices ); StaticFor< LocalIndexType, 0, SUBENTITIES_COUNT, CreateSubentitySeeds >::execHost( subentitySeeds, subvertices );
return subentitySeeds; return subentitySeeds;
} }
...@@ -61,7 +61,7 @@ private: ...@@ -61,7 +61,7 @@ private:
public: public:
static void exec( SubentitySeedArray& subentitySeeds, const SubvertexAccessorType& subvertices ) static void exec( SubentitySeedArray& subentitySeeds, const SubvertexAccessorType& subvertices )
{ {
StaticFor< LocalIndexType, 0, SUBENTITY_VERTICES_COUNT, SetSubentitySeedVertex >::exec( subentitySeeds[ subentityIndex ], subvertices ); StaticFor< LocalIndexType, 0, SUBENTITY_VERTICES_COUNT, SetSubentitySeedVertex >::execHost( subentitySeeds[ subentityIndex ], subvertices );
} }
private: private:
...@@ -107,4 +107,3 @@ public: ...@@ -107,4 +107,3 @@ public:
} // namespace Meshes } // namespace Meshes
} // namespace TNL } // namespace TNL
...@@ -144,14 +144,14 @@ public: ...@@ -144,14 +144,14 @@ public:
static void exec( Mesh& mesh ) static void exec( Mesh& mesh )
{ {
StaticFor< int, Dimension + 1, Mesh::getMeshDimension() + 1, Inner >::exec( mesh ); StaticFor< int, Dimension + 1, Mesh::getMeshDimension() + 1, Inner >::execHost( mesh );
} }
}; };
public: public:
static void exec( Mesh& mesh ) static void exec( Mesh& mesh )
{ {
StaticFor< int, 0, Mesh::getMeshDimension() + 1, OuterLoop >::exec( mesh ); StaticFor< int, 0, Mesh::getMeshDimension() + 1, OuterLoop >::execHost( mesh );
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment