Loading src/TNL/Meshes/DistributedMeshes/DistributedGridIO_MeshFunction.h +17 −17 Original line number Diff line number Diff line Loading @@ -341,19 +341,19 @@ class DistributedGridIO_MPIIOBase MPI_Comm group=*((MPI_Comm*)(distrGrid->getCommunicationGroup())); MPI_File file; int ok=MPI_File_open( group, if( MPI_File_open( group, const_cast< char* >( fileName.getString() ), MPI_MODE_RDONLY, MPI_INFO_NULL, &file ); TNL_ASSERT_EQ(ok,0,"Open file falied"); &file ) != 0 ) { std::cerr << "Unable to open file " << fileName.getString() << std::endl; return false; } bool ret= load(file, meshFunction, data,0)>0; MPI_File_close(&file); return ret; } /* Funky bomb - no checks - only dirty load */ Loading Loading
src/TNL/Meshes/DistributedMeshes/DistributedGridIO_MeshFunction.h +17 −17 Original line number Diff line number Diff line Loading @@ -341,19 +341,19 @@ class DistributedGridIO_MPIIOBase MPI_Comm group=*((MPI_Comm*)(distrGrid->getCommunicationGroup())); MPI_File file; int ok=MPI_File_open( group, if( MPI_File_open( group, const_cast< char* >( fileName.getString() ), MPI_MODE_RDONLY, MPI_INFO_NULL, &file ); TNL_ASSERT_EQ(ok,0,"Open file falied"); &file ) != 0 ) { std::cerr << "Unable to open file " << fileName.getString() << std::endl; return false; } bool ret= load(file, meshFunction, data,0)>0; MPI_File_close(&file); return ret; } /* Funky bomb - no checks - only dirty load */ Loading