Allow subsampling tracers in the stacking

This commit is contained in:
Guilhem Lavaux 2011-09-07 09:57:48 -05:00
parent aed10fb62c
commit 68e291b94a

View file

@ -93,7 +93,7 @@ int main(int argc, char *argv[]) {
for (p=0;p<nvp;p++) {
fread(&volstemp,1,sizeof(float),part);
if (vols[orig[p]] > -1.)
if (fabs(vols[orig[p]]-volstemp)/volstemp > 1.1e-3) {
if (fabs(vols[orig[p]]-volstemp)/volstemp > 1.5e-3) {
printf("Inconsistent volumes for p. %d: (%10g,%10g)!\n",
orig[p],vols[orig[p]],volstemp);
exit(0);