Commit 532c0f4e authored by berenger-bramas's avatar berenger-bramas
Browse files

Have refactorized the code and clean it.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@166 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 40067d42
This diff is collapsed.
#ifndef FPROCFMALOADER_HPP
#define FPROCFMALOADER_HPP
#ifndef FMPIFMALOADER_HPP
#define FMPIFMALOADER_HPP
// /!\ Please, you must read the license at the bottom of this page
#include <iostream>
......@@ -12,7 +12,7 @@
/**
* @author Berenger Bramas (berenger.bramas@inria.fr)
* @class FProcFmaLoader
* @class FMpiFmaLoader
* Please read the license
*
* Load a file with a format like :
......@@ -20,7 +20,7 @@
* X Y Z // one particle by line
* ....
* <code>
* FProcFmaLoader<FBasicParticle> loader("../FMB++/Tests/particles.basic.txt"); <br>
* FMpiFmaLoader<FBasicParticle> loader("../FMB++/Tests/particles.basic.txt"); <br>
* if(!loader.isOpen()){ <br>
* std::cout << "Loader Error\n"; <br>
* return 1; <br>
......@@ -38,7 +38,7 @@
* Particle has to extend {FExtendPhysicalValue,FExtendPosition}
*/
template <class ParticleClass>
class FProcFmaLoader : public FAbstractLoader<ParticleClass> {
class FMpiFmaLoader : public FAbstractLoader<ParticleClass> {
protected:
F3DPosition centerOfBox; //< The center of box read from file
FReal boxWidth; //< the box width read from file
......@@ -54,7 +54,7 @@ public:
* @param filename the name of the file to open
* you can test if file is successfuly open by calling hasNotFinished()
*/
FProcFmaLoader(const char* const filename, FMpi& app)
FMpiFmaLoader(const char* const filename, FMpi& app)
: boxWidth(0), totalNbParticles(0), nbParticles(0), isOpenFlag(false), particles(0), idxParticles(0) {
char nonConstFilename[512];
strcpy(nonConstFilename,filename);
......@@ -118,7 +118,7 @@ public:
/**
* Default destructor, simply close the file
*/
virtual ~FProcFmaLoader(){
virtual ~FMpiFmaLoader(){
if(isOpen()){
delete [] particles;
}
......@@ -170,6 +170,6 @@ public:
};
#endif //FPROCFMALOADER_HPP
#endif //FMPIFMALOADER_HPP
// [--LICENSE--]
This diff is collapsed.
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