Skip to content
Snippets Groups Projects

Added conversion of box dimensions

Merged Matthieu Schaller requested to merge BoxDimensionConversion into master
+ 12
0
Compare changes
  • Side-by-side
  • Inline
Files
+ 4
0
@@ -486,6 +486,10 @@ void read_ic_parallel(char* fileName, const struct UnitSystem* internal_units,
}
}
/* Convert the dimensions of the box */
for (int j = 0; j<3 ; j++)
dim[j] *= units_conversion_factor(ic_units, internal_units, UNIT_CONV_LENGTH);
/* Allocate memory to store SPH particles */
*Ngas = N[0];
if (posix_memalign((void*)parts, part_align, (*Ngas) * sizeof(struct part)) !=
Loading