Skip to content
Snippets Groups Projects
Commit 8d8be86e authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Correctly initialise the engine in the FFT test.

parent d92cb31d
No related branches found
No related tags found
1 merge request!340Split the drift into hydro and gravity drift tasks. Implement FFT task and dependencies
......@@ -47,7 +47,9 @@ int main() {
/* Make one particle */
int nr_gparts = 1;
struct gpart *gparts = NULL;
posix_memalign((void **)&gparts, 64, nr_gparts * sizeof(struct gpart));
if (posix_memalign((void **)&gparts, 64, nr_gparts * sizeof(struct gpart)) !=
0)
error("Impossible to allocate memory for gparts.");
bzero(gparts, nr_gparts * sizeof(struct gpart));
gparts[0].x[0] = 0.3;
......@@ -73,7 +75,8 @@ int main() {
engine.s = &space;
space.e = &engine;
engine.time = 0.1f;
engine.ti_current = 8;
engine.ti_current = 0;
engine.ti_old = 0;
engine.max_active_bin = num_time_bins;
engine.gravity_properties = &gravity_properties;
engine.nr_threads = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment