Skip to content
Snippets Groups Projects
Commit efd3ccee authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Start migration of FRFME to C++

parent 65e4d2db
No related branches found
No related tags found
No related merge requests found
#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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment