Commit 34358045 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Tomáš Oberhuber
Browse files

Refactoring of DistributedGridIO_MeshFunction.

parent c599cb8c
Loading
Loading
Loading
Loading
+17 −17
Original line number Diff line number Diff line
@@ -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 */