|
bool | readFsiFile (const char *, const char *, std::string &) |
| Utility function to read a solver input file into a string variable. More...
|
|
int | compareResponse (const char *, const char *, double, int=0) |
| Utility function to compare two ASCII files with numerical data. More...
|
|
static double | extFunc (int id, double x) |
| Hard-coded external function evaluations to test against. More...
|
|
static void | printOut (std::ostream &os, bool formatted, double time, const double *outputs, size_t nOut) |
| Helper to print out response data to the given stream for a time step. More...
|
|
int | main (int argc, char **argv) |
| Test program for external functions in the dynamics solver. More...
|
|
Test program for external functions in the dynamics solver.
- Author
- Knut Morten Okstad, Fedem Technology AS
- Date
- 5 Dec 2016
bool readFsiFile |
( |
const char * |
cwd, |
|
|
const char * |
fname, |
|
|
std::string & |
chfsi |
|
) |
| |
Utility function to read a solver input file into a string variable.
- Parameters
-
[in] | cwd | Current working directory |
[in] | fname | Path to the solver input file on disk |
[out] | chfsi | Text string containing the compressed file content |
All blank lines and comment lines are ignored, and all white spaces are replaced by a single space character, to make the string more compact. A dollar-sign ($) is appended at the end of each line instead of the newline character, since the latter is not so well handled by the Fortran routines that read the solver input.