Commit 8e21a9ad authored by jclamber's avatar jclamber

fix : rescale hsml=boxlen X dx

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@122 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent 31d2c335
......@@ -340,15 +340,14 @@ int CAmr::loadData(uns::CParticles * particles,
take=true;
}
// gas density
float rho = var[0*ngrida*twotondim+ind*ngrida+i];
float rho = var[0*ngrida*twotondim+ind*ngrida+i];
if (req_bits&MASS_BIT) {
particles->mass.push_back(rho*dx*dx*dx);
particles->load_bits |= MASS_BIT;
take=true;
}
if (req_bits&HSML_BIT) {
particles->hsml.push_back(dx); // hsml
particles->hsml.push_back(dx*header.boxlen); // hsml
particles->load_bits |= HSML_BIT;
}
if (req_bits&RHO_BIT) {
......
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