#include "main.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
vector< datafile * > | openAndParseFiles () |
Open the files specified at the command line and parse them. More... | |
void | compareFiles (vector< datafile * > pFiles) |
Compare the two files, interpolating the points from the second onto the first mesh. More... | |
std::vector< points * > | retrievePoints (datafile *pFile, vector< int > rPartitions) |
Construct a vector of pointers to datasets (point objects) from a list of partition numbers. More... | |
void | printPointValues (points *pPoints) |
Write point values to standard out. More... | |
long double | calcAverageValue (points *pPoints, int rVar) |
Calculates the average value of the points. More... | |
long double | minPoint (points *pPoints, int rVar) |
Find the minimum value. More... | |
long double | maxPoint (points *pPoints, int rVar) |
Find the maximum value. More... | |
void | printUsage (string rErrorMessage) |
Print the rc_cmp usage message. More... | |
Variables | |
ComSwitch | gCmdSwitches |
long double calcAverageValue | ( | points * | pPoints, |
int | rVar | ||
) |
Calculates the average value of the points.
pPoints | Datapoints |
rVar | Variable number to average |
Definition at line 276 of file main.cpp.
References points::get_num_points(), points::get_point(), and pnt::vals.
void compareFiles | ( | vector< datafile * > | pFiles | ) |
Compare the two files, interpolating the points from the second onto the first mesh.
Then, ouput results.
Definition at line 95 of file main.cpp.
References Interpolate::bilinear(), points::contains_null(), points::delete_all(), cmp_map::file1_partitions, cmp_map::file2_partition, metric::get_metric_name(), datafile::get_points(), metric::get_res(), ComSwitch::getComparisonList(), ComSwitch::getLogFile(), ComSwitch::getOutPrefix(), ComSwitch::getRange(), ComSwitch::getVerbosity(), i, ComSwitch::isRangeSpecified(), itoa(), cmp_map::metric, metric_select(), retrievePoints(), same_elements(), metric::setRange(), cmp_map::var1, and cmp_map::var2.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 12 of file main.cpp.
References compareFiles(), files(), openAndParseFiles(), ComSwitch::parseOptions(), and ComSwitch::setArguments().
long double maxPoint | ( | points * | pPoints, |
int | rVar | ||
) |
Find the maximum value.
pPoints | Points |
rVar | Variable number |
Definition at line 309 of file main.cpp.
References points::get_num_points(), points::get_point(), max(), and pnt::vals.
long double minPoint | ( | points * | pPoints, |
int | rVar | ||
) |
Find the minimum value.
pPoints | Points |
rVar | Variable number |
Definition at line 293 of file main.cpp.
References points::get_num_points(), points::get_point(), min(), and pnt::vals.
vector<datafile*> openAndParseFiles | ( | ) |
Open the files specified at the command line and parse them.
Definition at line 40 of file main.cpp.
References Fileselect::detectFiletype(), ComSwitch::getConvFactor(), ComSwitch::getFieldMappings(), ComSwitch::getFileDimensions(), ComSwitch::getFileName(), ComSwitch::getIndexOrder(), ComSwitch::getInputFile(), ComSwitch::getLogFile(), ComSwitch::getNormVal(), ComSwitch::getVerbosity(), and datafile::parse().
Referenced by main().
void printPointValues | ( | points * | pPoints | ) |
Write point values to standard out.
Definition at line 259 of file main.cpp.
References points::get_num_points(), points::get_point(), pnt::size, and pnt::vals.
void printUsage | ( | string | rErrorMessage | ) |
Print the rc_cmp usage message.
rErrorString | The error message |
Definition at line 326 of file main.cpp.
References gUsage(), print_metrics(), and Fileselect::printFiletypes().
Construct a vector of pointers to datasets (point objects) from a list of partition numbers.
Definition at line 240 of file main.cpp.
References datafile::get_num_partitions(), and datafile::get_points().
Referenced by compareFiles().