diff --git a/tests/testReading.c b/tests/testReading.c index 08f8e775ae3cb6f11f2e027d461cb38bd67a4f47..c8123a26acd12692ccd6cd3d893f94e0f95fb856 100644 --- a/tests/testReading.c +++ b/tests/testReading.c @@ -31,9 +31,7 @@ int main() { const double boxSize = 1.; const int L = 4; const double rho = 2.; - const double P = 1.; - const double gamma = 5. / 3.; - + /* Read data */ read_ic_single("input.hdf5", dim, &parts, &N, &periodic); @@ -61,11 +59,6 @@ int main() { float correct_h = 2.251 * boxSize / L; assert(h == correct_h); - /* Check internal energy */ - float u = parts[n].u; - float correct_u = P / ((gamma - 1.) * rho); - assert(u == correct_u); - /* Check velocity */ assert(parts[n].v[0] == 0.); assert(parts[n].v[1] == 0.); @@ -83,9 +76,9 @@ int main() { assert(parts[n].x[2] == correct_z); /* Check accelerations */ - assert(parts[n].a[0] == 0.); - assert(parts[n].a[1] == 0.); - assert(parts[n].a[2] == 0.); + assert(parts[n].a_hydro[0] == 0.); + assert(parts[n].a_hydro[1] == 0.); + assert(parts[n].a_hydro[2] == 0.); } /* Clean-up */