diff --git a/src/trapping/frfme.cpp b/src/trapping/frfme.cpp new file mode 100644 index 0000000000000000000000000000000000000000..b67788179cdabb863de650592afe47505449aea9 --- /dev/null +++ b/src/trapping/frfme.cpp @@ -0,0 +1,35 @@ +#include <cstdio> +#include <fstream> +#include <string> +#include <complex> +#ifndef INCLUDE_PARSERS_H_ +#include "../include/Parsers.h" +#endif +#ifndef INCLUDE_SPH_SUBS_H_ +#include "../include/sph_subs.h" +#endif + +using namespace std; + +/*! \brief C++ implementation of FRFME + * + * \param data_file: `string` Name of the input data file. + * \param output_path: `string` Directory to write the output files in. + */ +//void frfme(string data_file, string output_path) { +int main() { + string data_file = "../../test_data/trapping/DFRFME"; + char namef[5]; + chare more; + double *xv, *yv, *zv; + double *vkv, **vkzm; + complex<double> *wk, **w, **wsum; + const complex<double> cc0(0.0, 0.0); + int line_count = 0, last_read_line = 0; + string *file_lines = load_file(data_file, &line_count); + for (int fli = 0; fli < line_count; fli++) { + printf("%s\n", file_lines[fli]); + } + delete[] file_lines; + return 0; +}