Skip to content
Snippets Groups Projects
Commit d8aa0ef9 authored by James Willis's avatar James Willis
Browse files

Allocate structure for VELOCIraptor unit system.

parent 6922772b
Branches
Tags
1 merge request!578Swift velociraptor
......@@ -49,6 +49,9 @@ void velociraptor_init(struct engine *e) {
struct siminfo sim_info;
struct phys_const vel_const;
if (posix_memalign((void **)&(e->stf_units), 32,
sizeof(struct unit_system)) != 0)
error("Failed to allocate VELOCIraptor unit system.");
/* Initialize velociraptor unit system and constants */
units_init(e->stf_units, e->parameter_file, "VelociraptorUnitSystem");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment