FEDEM Solver
R8.0
Source code of the dynamics solver
|
Utility for reading read a solver input file into a string variable. More...
#include <fstream>
#include <string>
#include <cstring>
#include <cctype>
#include <cstdio>
Functions | |
bool | readFsiFile (const char *cwd, const char *fname, std::string &chfsi) |
Utility function to read a solver input file into a string variable. More... | |
Utility for reading read a solver input file into a string variable.
bool readFsiFile | ( | const char * | cwd, |
const char * | fname, | ||
std::string & | chfsi | ||
) |
Utility function to read a solver input file into a string variable.
[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.