Commit 8b42c8da authored by DeAn Wei's avatar DeAn Wei
Browse files

extend table property

parent 30cbe2a5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line

#include <strings.h>
#include <regex>
#include "Home.h"
#include "Util.h"
#include "ProDataIO.h"
+6 −0
Original line number Diff line number Diff line
@@ -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] << " ";