Add periodic argument
This commit is contained in:
parent
d2cd6bb650
commit
d4b1742cbf
@ -84,6 +84,7 @@ int main(int argc, char **argv) {
|
|||||||
char *fname1, *outFile;
|
char *fname1, *outFile;
|
||||||
double rLimit, boxsize, rLimit2, cx, cy, cz;
|
double rLimit, boxsize, rLimit2, cx, cy, cz;
|
||||||
int Nres;
|
int Nres;
|
||||||
|
int periodic;
|
||||||
|
|
||||||
MiniArgDesc args[] = {{"INPUT DATA1", &fname1, MINIARG_STRING},
|
MiniArgDesc args[] = {{"INPUT DATA1", &fname1, MINIARG_STRING},
|
||||||
{"RADIUS LIMIT", &rLimit, MINIARG_DOUBLE},
|
{"RADIUS LIMIT", &rLimit, MINIARG_DOUBLE},
|
||||||
@ -93,6 +94,7 @@ int main(int argc, char **argv) {
|
|||||||
{"CY", &cy, MINIARG_DOUBLE},
|
{"CY", &cy, MINIARG_DOUBLE},
|
||||||
{"CZ", &cz, MINIARG_DOUBLE},
|
{"CZ", &cz, MINIARG_DOUBLE},
|
||||||
{"OUTPUT FILE", &outFile, MINIARG_STRING},
|
{"OUTPUT FILE", &outFile, MINIARG_STRING},
|
||||||
|
{"PERIODIC", &periodic, MINIARG_INT},
|
||||||
{0, 0, MINIARG_NULL}};
|
{0, 0, MINIARG_NULL}};
|
||||||
|
|
||||||
if (!parseMiniArgs(argc, argv, args))
|
if (!parseMiniArgs(argc, argv, args))
|
||||||
@ -148,6 +150,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
cout << "Building trees..." << endl;
|
cout << "Building trees..." << endl;
|
||||||
MyTree tree1(allCells_1, N1_points);
|
MyTree tree1(allCells_1, N1_points);
|
||||||
|
tree1.setPeriodic(periodic != 0);
|
||||||
|
|
||||||
cout << "Creating smoothing filter..." << endl;
|
cout << "Creating smoothing filter..." << endl;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user