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

Fixed specialization of loadMesh for Mesh, CUDA and MPI

parent 219db39d
No related branches found
No related tags found
1 merge request!49Bug fixes
...@@ -118,7 +118,7 @@ template< typename CommunicatorType, ...@@ -118,7 +118,7 @@ template< typename CommunicatorType,
bool bool
loadMesh( const String& fileName, loadMesh( const String& fileName,
Mesh< MeshConfig, Device >& mesh, Mesh< MeshConfig, Device >& mesh,
DistributedMeshes::DistributedMesh< Mesh< MeshConfig, Device > > &distributedMesh ) DistributedMeshes::DistributedMesh< Mesh< MeshConfig, Device > >& distributedMesh )
{ {
if( CommunicatorType::isDistributed() ) if( CommunicatorType::isDistributed() )
{ {
...@@ -189,9 +189,12 @@ loadMesh( const String& fileName, ...@@ -189,9 +189,12 @@ loadMesh( const String& fileName,
} }
Mesh< MeshConfig, Devices::Host > hostMesh; Mesh< MeshConfig, Devices::Host > hostMesh;
if( ! loadMesh( fileName, hostMesh ) ) DistributedMeshes::DistributedMesh< Mesh< MeshConfig, Devices::Host > > hostDistributedMesh;
if( ! loadMesh< CommunicatorType >( fileName, hostMesh, hostDistributedMesh ) )
return false; return false;
mesh = hostMesh; mesh = hostMesh;
// TODO
// distributedMesh = hostDistributedMesh;
return true; return true;
} }
......
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