Commit a9e586b7 authored by Quentin Khan's avatar Quentin Khan

Fix unused variable warning in FMpiFmaGenericLoader

parent af7b20f7
......@@ -42,7 +42,7 @@ protected:
FSize start; // number of my first parts in file
size_t headerSize;
public:
FMpiFmaGenericLoader(const std::string inFilename,const FMpi::FComm& comm, const bool useMpiIO = false)
FMpiFmaGenericLoader(const std::string inFilename,const FMpi::FComm& comm, const bool /*useMpiIO*/ = false)
: FFmaGenericLoader<FReal>(inFilename,true),myNbOfParticles(0),idxParticles(0),headerSize(0)
{
FSize startPart = comm.getLeft(nbParticles);
......@@ -50,7 +50,7 @@ public:
this->start = startPart;
this->myNbOfParticles = endPart-startPart;
std::cout << "Proc " << comm.processId() << " will hold " << myNbOfParticles << std::endl;
//This is header size in bytes
// MEANING : sizeof(FReal)+nbAttr, nb of parts, boxWidth+boxCenter
headerSize = sizeof(int)*2 + sizeof(FSize) + sizeof(FReal)*4;
......@@ -60,7 +60,7 @@ public:
~FMpiFmaGenericLoader(){
}
FSize getMyNumberOfParticles() const{
return myNbOfParticles;
}
......@@ -68,7 +68,7 @@ public:
FSize getStart() const{
return start;
}
/**
* Given an index, get the one particle from this index
*/
......@@ -76,7 +76,7 @@ public:
file->seekg(headerSize+(int(indexInFile)*FFmaGenericLoader<FReal>::getNbRecordPerline()*sizeof(FReal)));
file->read((char*) datas,FFmaGenericLoader<FReal>::getNbRecordPerline()*sizeof(FReal));
}
};
#endif //FMPIFMAGENERICLOADER_HPP
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment