Commit 16c4113f authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Bug fix in testSPHStep

parent d2042445
...@@ -96,10 +96,16 @@ void runner_dopair2_force(struct runner *r, struct cell *ci, struct cell *cj); ...@@ -96,10 +96,16 @@ void runner_dopair2_force(struct runner *r, struct cell *ci, struct cell *cj);
/* Run a full time step integration for one cell */ /* Run a full time step integration for one cell */
int main() { int main() {
#ifndef DEFAULT_SPH
return 0; return 0;
#else
int i, j, k, offset[3]; int i, j, k, offset[3];
struct part *p; struct part *p;
struct hydro_props hp;
hp.target_neighbours = 48.;
hp.delta_neighbours = 1.;
hp.max_smoothing_iterations = 30;
int N = 10; int N = 10;
float dim = 1.; float dim = 1.;
...@@ -144,6 +150,7 @@ int main() { ...@@ -144,6 +150,7 @@ int main() {
struct engine e; struct engine e;
e.s = &space; e.s = &space;
e.hydro_properties = &hp;
struct runner r; struct runner r;
r.e = &e; r.e = &e;
...@@ -197,4 +204,5 @@ int main() { ...@@ -197,4 +204,5 @@ int main() {
free(ci->xparts); free(ci->xparts);
return 0; return 0;
#endif
} }
Supports Markdown
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