#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
#include <vector>
#include <algorithm>
#include <iterator>
#include <utility>
#include <sstream>
#include <cmath>
#include <cstring>
#include <cstdio>
Functions | |
void | extractWords (const std::string &line, string::size_type beginIndx, const std::string &delimit, std::vector< string > &variableNames) |
std::pair< bool, int > | extractNumber (const std::string &word) |
void | readTecplotFile (std::istream &tecFile, std::vector< double > &vertexVariables, int &numVariablesPerVtx, std::vector< int > &connectivity, int &numNodesPerElem, std::vector< std::string > &variableNames) |
void | resizeOneElement (double p0[3], double p1[3], double p2[3], double sfac) |
void | resizeElements (std::vector< double > &vertexVariables, int numVariablesPerVtx, std::vector< int > &connectivity, int numNodesPerElem, double sfac) |
void | printVTK (std::ostream &vtuFile, std::vector< double > &vertexVariables, int &numDims, int &numVariablesPerVtx, std::vector< int > &connectivity, int &numNodesPerElem, std::vector< std::string > &variableNames) |
bool | strequals (const char *src, const char *dst) |
void | printUsage (char *name) |
int | main (int argc, char **argv) |
std::pair<bool, int> extractNumber | ( | const std::string & | word | ) |
void extractWords | ( | const std::string & | line, | |
string::size_type | beginIndx, | |||
const std::string & | delimit, | |||
std::vector< string > & | variableNames | |||
) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
References printUsage(), printVTK(), readTecplotFile(), resizeElements(), and strequals().
void printUsage | ( | char * | name | ) |
Referenced by main().
void printVTK | ( | std::ostream & | vtuFile, | |
std::vector< double > & | vertexVariables, | |||
int & | numDims, | |||
int & | numVariablesPerVtx, | |||
std::vector< int > & | connectivity, | |||
int & | numNodesPerElem, | |||
std::vector< std::string > & | variableNames | |||
) |
void readTecplotFile | ( | std::istream & | tecFile, | |
std::vector< double > & | vertexVariables, | |||
int & | numVariablesPerVtx, | |||
std::vector< int > & | connectivity, | |||
int & | numNodesPerElem, | |||
std::vector< std::string > & | variableNames | |||
) |
References extractNumber(), and extractWords().
void resizeElements | ( | std::vector< double > & | vertexVariables, | |
int | numVariablesPerVtx, | |||
std::vector< int > & | connectivity, | |||
int | numNodesPerElem, | |||
double | sfac | |||
) |
References resizeOneElement().
Referenced by main().
void resizeOneElement | ( | double | p0[3], | |
double | p1[3], | |||
double | p2[3], | |||
double | sfac | |||
) |
Referenced by resizeElements().
bool strequals | ( | const char * | src, | |
const char * | dst | |||
) |