Commit 21b9c9f7 authored by jclamber's avatar jclamber

fix regression on temperature

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@218 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent 0cd8bad1
......@@ -346,7 +346,7 @@ int CAmr::loadData(uns::CParticles * particles,
if (req_bits&TEMP_BIT && nvarh>(4+offset_2d)) {
float temp=0.0;
if (rho!=0.0) {
std::max(0.0,var[(4+offset_2d)*ngrida*twotondim+ind*ngrida+i]/rho);
temp=std::max(0.0,var[(4+offset_2d)*ngrida*twotondim+ind*ngrida+i]/rho);
}
particles->temp.push_back(temp);
particles->load_bits |= TEMP_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