Commit 1d1ece7e authored by jclamber's avatar jclamber
Browse files

push fix

git-svn-id: http://svn.oamp.fr/repos/uns_projects/trunk@96 f264a43e-d52d-4b82-913b-c2bd5215a18a
parent 602685c9
// ============================================================================
// Copyright Jean-Charles LAMBERT - 2014
// e-mail: Jean-Charles.Lambert@oamp.fr
// Centre de donneeS Astrophysiques de Marseille (CeSAM)
// e-mail: Jean-Charles.Lambert@lam.fr
// address: Dynamique des galaxies
// Laboratoire d'Astrophysique de Marseille
// Pole de l'Etoile, site de Chateau-Gombert
......@@ -38,6 +39,27 @@ CRectify::CRectify()
init();
}
bool CRectify::rectify(const int _nbody,const float _time,
float * _pos, float * _vel,float * _mass, float * _weight, const bool _rectify,
std::string _cod_file,std::string _rect_file, const float _threshold)
{
nbody= _nbody;
pos = _pos;
vel = _vel;
mass = _mass;
rho = _weight;
time = _time;
threshold = _threshold;
cod_file = _cod_file;
rect_file = _rect_file;
rect = _rectify;
process();
}
bool CRectify::rectify(int _nbody, float * _pos, float * _vel,float * _mass, float * _rho,
float _threshold, std::string _cod_file)
{
......
// ============================================================================
// Copyright Jean-Charles LAMBERT - 2014
// e-mail: Jean-Charles.Lambert@oamp.fr
// Centre de donneeS Astrophysiques de Marseille (CeSAM)
// e-mail: Jean-Charles.Lambert@lam.fr
// address: Dynamique des galaxies
// Laboratoire d'Astrophysique de Marseille
// Pole de l'Etoile, site de Chateau-Gombert
......@@ -55,16 +56,17 @@ public:
bool rectify(int nbody,float * pos, float * vel,float * mass, float * rho,
float threshold=70.0, std::string cod_file="");
bool rectify(const int nbody,const float time,
float * pos, float * vel,float * mass, float * weight,
std::string cod_file="",std::string rect_file="", float threshold=0.0);
float * pos, float * vel,float * mass, float * weight, const bool rectify=false,
std::string cod_file="",std::string rect_file="", const float threshold=0.0);
void process();
private:
uns::CunsIn * unsin;
jclut::CDensity * density;
float * pos, * vel, * mass, * rho;
float time, * pos, * vel, * mass, * rho;
float threshold;
std::string cod_file;
std::string cod_file, rect_file;
bool rect;
int nbody;
std::vector<CDataIndex> rho_di;
void init();
......
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