preCICE v3.1.2
Loading...
Searching...
No Matches
TXTReader.cpp
Go to the documentation of this file.
1#include "TXTReader.hpp"
3
4namespace precice::io {
5
7 const std::string &filename)
8 : _file()
9{
10 _file.open(filename);
11 PRECICE_CHECK(_file, "TXT reader failed to open file \"{}\"", filename);
12 _file.setf(std::ios::showpoint);
13 _file.setf(std::ios::fixed);
14 //_file << std::setprecision(16);
15}
16
17} // namespace precice::io
#define PRECICE_CHECK(check,...)
Definition LogMacros.hpp:35
std::ifstream _file
Filestream.
Definition TXTReader.hpp:38
TXTReader(const std::string &filename)
Constructor, opens file and sets format.
Definition TXTReader.cpp:6
provides Import and Export of the coupling mesh and data.
T open(T... args)
T setf(T... args)