Commit 1218cc6a authored by jclamber's avatar jclamber

correct gas mass : dx*boxlen

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