FEDEM Solver
R8.0
Source code of the dynamics solver
|
Utility for comparing two ASCII files with numerical data. More...
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <cstdio>
#include <cmath>
Functions | |
int | compareResponse (const char *fn1, const char *fn2, double eps, int skip) |
Utility function to compare two ASCII files with numerical data. More... | |
Utility for comparing two ASCII files with numerical data.
This is only used to facilitate regression testing of the solver, where a simulation generates some responses (time history data), which are to be compared against reference responses stored on some file. It is typically invoked at the end of the simulation, after the response to be checked has been exported to an ASCII-file.
int compareResponse | ( | const char * | fn1, |
const char * | fn2, | ||
double | eps, | ||
int | skip | ||
) |
Utility function to compare two ASCII files with numerical data.
[in] | fn1 | Path to the first file |
[in] | fn2 | Path to the second file (with reference data) |
[in] | eps | Comparison tolerance |
[in] | skip | Number of initial lines to skip coomparison for |