Add periodic argument

This commit is contained in:
Guilhem Lavaux 2023-12-05 16:35:43 +01:00
parent d2cd6bb650
commit d4b1742cbf

View File

@ -84,6 +84,7 @@ int main(int argc, char **argv) {
char *fname1, *outFile;
double rLimit, boxsize, rLimit2, cx, cy, cz;
int Nres;
int periodic;
MiniArgDesc args[] = {{"INPUT DATA1", &fname1, MINIARG_STRING},
{"RADIUS LIMIT", &rLimit, MINIARG_DOUBLE},
@ -93,6 +94,7 @@ int main(int argc, char **argv) {
{"CY", &cy, MINIARG_DOUBLE},
{"CZ", &cz, MINIARG_DOUBLE},
{"OUTPUT FILE", &outFile, MINIARG_STRING},
{"PERIODIC", &periodic, MINIARG_INT},
{0, 0, MINIARG_NULL}};
if (!parseMiniArgs(argc, argv, args))
@ -148,6 +150,7 @@ int main(int argc, char **argv) {
cout << "Building trees..." << endl;
MyTree tree1(allCells_1, N1_points);
tree1.setPeriodic(periodic != 0);
cout << "Creating smoothing filter..." << endl;