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

Correclty initialise the gparts in the unit tests when running with debugging checks.

parent 1605567c
No related branches found
No related tags found
No related merge requests found
......@@ -205,6 +205,7 @@ int main(int argc, char *argv[]) {
gp->id_or_neg_offset = n + 1;
#ifdef SWIFT_DEBUG_CHECKS
gp->ti_drift = 8;
gp->initialised = 1;
#endif
}
......@@ -222,6 +223,7 @@ int main(int argc, char *argv[]) {
ci.grav.parts[0].id_or_neg_offset = 1;
#ifdef SWIFT_DEBUG_CHECKS
ci.grav.parts[0].ti_drift = 8;
ci.grav.parts[0].initialised = 1;
#endif
/* Now compute the forces */
......@@ -378,6 +380,7 @@ int main(int argc, char *argv[]) {
ci.grav.parts[n].id_or_neg_offset = 1;
#ifdef SWIFT_DEBUG_CHECKS
ci.grav.parts[n].ti_drift = 8;
ci.grav.parts[n].initialised = 1;
#endif
}
......
......@@ -157,6 +157,7 @@ int main(int argc, char *argv[]) {
c.grav.parts[0].id_or_neg_offset = 1;
#ifdef SWIFT_DEBUG_CHECKS
c.grav.parts[0].ti_drift = 8;
c.grav.parts[0].initialised = 1;
#endif
/* Create the mass-less particles */
......@@ -173,6 +174,7 @@ int main(int argc, char *argv[]) {
gp->id_or_neg_offset = n + 1;
#ifdef SWIFT_DEBUG_CHECKS
gp->ti_drift = 8;
gp->initialised = 1;
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment