Commit 068a5082 authored by Volker Springel's avatar Volker Springel
Browse files

fixed calculation of hydro load factor for collective subfind

parent 29ba6ed5
......@@ -237,18 +237,8 @@ void domain<simparticles>::domain_find_total_cost(void)
if(Tp->P[i].getType() == 0)
{
#ifdef SUBFIND
if(Mode == COLL_SUBFIND)
{
if(Tp->PS[i].DomainFlag)
HydroCostPerListedTimeBin[n] += 1.0;
}
else
#endif
{
if(bin >= Tp->P[i].getTimeBinHydro())
HydroCostPerListedTimeBin[n] += 1.0;
}
if(bin >= Tp->P[i].getTimeBinHydro())
HydroCostPerListedTimeBin[n] += 1.0;
}
}
}
......
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