FEDEM Solver  R8.0
Source code of the dynamics solver
Functions
readFSI.C File Reference

Utility for reading read a solver input file into a string variable. More...

#include <fstream>
#include <string>
#include <cstring>
#include <cctype>
#include <cstdio>
Include dependency graph for readFSI.C:

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...
 

Detailed Description

Utility for reading read a solver input file into a string variable.

Author
Knut Morten Okstad, Fedem Technology AS
Date
19 Dec 2016

Function Documentation

◆ readFsiFile()

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]cwdCurrent working directory
[in]fnamePath to the solver input file on disk
[out]chfsiText 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.

Here is the caller graph for this function: