Loading include/Home.h +3 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,9 @@ typedef struct { }Variable_t; typedef struct { string T; int i,j,k; double solutionTime; vector<string> variables; map<string, string> aux; vector<vector<double> > data; Loading src/ReadData.cpp +1 −0 Original line number Diff line number Diff line #include <strings.h> #include <regex> #include "Home.h" #include "Util.h" #include "ProDataIO.h" Loading src/WriteData.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,12 @@ void WriteTecplotNormalData(const Table_t &table, const string &file, double pre out << secLine << endl; } if(!table.aux.empty()){ for(const auto &pair : table.aux){ out << "AUXDATA " << pair.first << " = \"" << pair.second << "\"\n"; } } for(i=0; i<table.data.size(); i++){ for(j=0; j<table.variables.size(); j++){ out << setprecision(precision) << table.data[i][j] << " "; Loading Loading
include/Home.h +3 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,9 @@ typedef struct { }Variable_t; typedef struct { string T; int i,j,k; double solutionTime; vector<string> variables; map<string, string> aux; vector<vector<double> > data; Loading
src/ReadData.cpp +1 −0 Original line number Diff line number Diff line #include <strings.h> #include <regex> #include "Home.h" #include "Util.h" #include "ProDataIO.h" Loading
src/WriteData.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,12 @@ void WriteTecplotNormalData(const Table_t &table, const string &file, double pre out << secLine << endl; } if(!table.aux.empty()){ for(const auto &pair : table.aux){ out << "AUXDATA " << pair.first << " = \"" << pair.second << "\"\n"; } } for(i=0; i<table.data.size(); i++){ for(j=0; j<table.variables.size(); j++){ out << setprecision(precision) << table.data[i][j] << " "; Loading