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

Also adapt the unit tests to the new i/o function signatures.

parent cd50b092
Branches
Tags
No related merge requests found
......@@ -26,7 +26,6 @@
int main(int argc, char *argv[]) {
size_t Ngas = 0, Ngpart = 0, Nspart = 0;
int periodic = -1;
int flag_entropy_ICs = -1;
int i, j, k;
double dim[3];
......@@ -48,8 +47,8 @@ int main(int argc, char *argv[]) {
/* Read data */
read_ic_single("input.hdf5", &us, dim, &parts, &gparts, &sparts, &Ngas,
&Ngpart, &Nspart, &periodic, &flag_entropy_ICs, 1, 1, 0, 0, 0,
1., 1., 1, 0);
&Ngpart, &Nspart, &flag_entropy_ICs, 1, 1, 0, 0, 0, 1., 1., 1,
0);
/* Check global properties read are correct */
assert(dim[0] == boxSize);
......@@ -57,7 +56,6 @@ int main(int argc, char *argv[]) {
assert(dim[2] == boxSize);
assert(Ngas == L * L * L);
assert(Ngpart == L * L * L);
assert(periodic == 1);
/* Check particles */
for (size_t n = 0; n < Ngas; ++n) {
......
......@@ -85,8 +85,8 @@ int main(int argc, char *argv[]) {
char *base_name = "testSelectOutput";
size_t Ngas = 0, Ngpart = 0, Nspart = 0;
int periodic = -1;
int flag_entropy_ICs = -1;
int periodic = 1;
double dim[3];
struct part *parts = NULL;
struct gpart *gparts = NULL;
......@@ -111,8 +111,8 @@ int main(int argc, char *argv[]) {
/* Read data */
message("Reading initial conditions.");
read_ic_single("input.hdf5", &us, dim, &parts, &gparts, &sparts, &Ngas,
&Ngpart, &Nspart, &periodic, &flag_entropy_ICs, 1, 0, 0, 0, 0,
1., 1., 1, 0);
&Ngpart, &Nspart, &flag_entropy_ICs, 1, 0, 0, 0, 0, 1., 1., 1,
0);
/* pseudo initialization of the space */
message("Initialization of the space.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment