Commit 8a3841b0 authored by Vít Hanousek's avatar Vít Hanousek
Browse files

Distributed Vector Field MPIIO fix.

parent cfa2c06f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -173,6 +173,9 @@ class DistributedGridIO_MPIIOBase
       int dataCount=CreateDataTypes(distrGrid,&ftype,&atype);

       int headerSize;
	   
       MPI_File_set_view(file,0,MPI_BYTE,MPI_BYTE,"native",MPI_INFO_NULL);

       if(Communicators::MpiCommunicator::GetRank(group)==0)
       {
            MPI_File_seek(file,offset,MPI_SEEK_SET);
@@ -184,8 +187,8 @@ class DistributedGridIO_MPIIOBase

       if( std::is_same< RealType, double >::value)
         MPI_File_set_view(file,offset,MPI_DOUBLE,ftype,"native",MPI_INFO_NULL);
       if( std::is_same< RealType, float >::value)
         MPI_File_set_view(file,offset,MPI_FLOAT,ftype,"native",MPI_INFO_NULL);
/*       if( std::is_same< RealType, float >::value)
         MPI_File_set_view(file,offset,MPI_FLOAT,ftype,"native",MPI_INFO_NULL);*/
       
       MPI_Status wstatus;

+3 −2
Original line number Diff line number Diff line
@@ -17,9 +17,9 @@ TEST( DistributedVectorFieldIO_MPIIO, Save_1D )
    TestDistributedVectorFieldMPIIO<1,2,Host>::TestSave();
}

/*TEST( DistributedVectorFieldIO_MPIIO, Save_2D )
TEST( DistributedVectorFieldIO_MPIIO, Save_2D )
{
    TestDistributedVectorFieldMPIIO<2,2,Host>::TestSave();
    TestDistributedVectorFieldMPIIO<2,3,Host>::TestSave();
}

TEST( DistributedVectorFieldIO_MPIIO, Save_3D )
@@ -27,6 +27,7 @@ TEST( DistributedVectorFieldIO_MPIIO, Save_3D )
    TestDistributedVectorFieldMPIIO<3,2,Host>::TestSave();
}

/*
TEST( DistributedGridIO, Load_1D )
{
    TestDistributedVectorFieldMPIIO<1,Host>::TestLoad();
+2 −2

File changed.

Contains only whitespace changes.