Add output file argument
This commit is contained in:
parent
65b3139ba9
commit
c264f2c69d
@ -86,8 +86,7 @@ void computeInterpolatedField(MyTree *tree1, double boxsize, int Nres, double cx
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
char *fname1, *outFile;
|
||||||
char *fname1, *fname2;
|
|
||||||
double rLimit, boxsize, rLimit2, cx, cy, cz;
|
double rLimit, boxsize, rLimit2, cx, cy, cz;
|
||||||
int Nres;
|
int Nres;
|
||||||
|
|
||||||
@ -99,6 +98,7 @@ int main(int argc, char **argv)
|
|||||||
{ "CX", &cx, MINIARG_DOUBLE },
|
{ "CX", &cx, MINIARG_DOUBLE },
|
||||||
{ "CY", &cy, MINIARG_DOUBLE },
|
{ "CY", &cy, MINIARG_DOUBLE },
|
||||||
{ "CZ", &cz, MINIARG_DOUBLE },
|
{ "CZ", &cz, MINIARG_DOUBLE },
|
||||||
|
{ "OUTPUT FILE", &outFile, MINIARG_STRING },
|
||||||
{ 0, 0, MINIARG_NULL }
|
{ 0, 0, MINIARG_NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ int main(int argc, char **argv)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
H5::H5File in_f(fname1, 0);
|
H5::H5File in_f(fname1, 0);
|
||||||
H5::H5File out_f("fields.h5", H5F_ACC_TRUNC);
|
H5::H5File out_f(outFile, H5F_ACC_TRUNC);
|
||||||
array_type v1_data;
|
array_type v1_data;
|
||||||
uint32_t N1_points, N2_points;
|
uint32_t N1_points, N2_points;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user