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

Disabled Mesh::print method on CUDA

parent 765c15da
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,13 @@ void
Mesh< MeshConfig, Device >::
print( std::ostream& str ) const
{
StorageBaseType::print( str );
// FIXME: there is a problem with multimaps and accessors holding pointers into the device memory
if( std::is_same< Device, Devices::Cuda >::value ) {
str << "Textual representation of meshes stored on the CUDA device is not supported." << std::endl;
}
else {
StorageBaseType::print( str );
}
}
template< typename MeshConfig, typename Device >
......
......@@ -471,7 +471,7 @@ public:
{
str << "The mesh vertices are: " << std::endl;
for( GlobalIndexType i = 0; i < vertices.getSize(); i++ )
str << i << vertices[ i ] << std::endl;
str << i << " " << vertices[ i ] << std::endl;
SuperentityStorageBaseType::print( str );
BoundaryTagsBaseType::print( str );
str << std::endl;
......
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