#include <FloGrid.H>
Definition at line 276 of file FloGrid.H.
FloGrid |
( |
const std::string & |
casename | ) |
|
|
inline |
Definition at line 350 of file FloGrid.H.
References _casename, n, and FloGridBlock::ReadBlock().
Referenced by main().
352 std::string sourcegridfile(
_casename+
".grda_0.00000E-00");
353 std::cout <<
"Reading grid file: " << sourcegridfile << std::endl;
356 Inf.open(sourcegridfile.c_str());
358 std::cout <<
"FloGrid::ReadAllBlocks: Could not open source grid file, "
359 << sourcegridfile << std::endl;
363 std::string ftimestamp;
364 std::getline(Inf,ftimestamp);
int ReadBlock(std::istream &BlockIn)
Definition at line 292 of file FloGrid.H.
References _blocks.
std::vector< FloGridBlock > _blocks
std::string Casename |
( |
| ) |
const |
|
inline |
void CloseSolutionFile |
( |
| ) |
|
|
inline |
Definition at line 386 of file FloGrid.H.
References _blocks.
Referenced by main().
388 std::vector<FloGridBlock>::iterator fgbi =
_blocks.begin();
390 fgbi++->CreateSoln();
std::vector< FloGridBlock > _blocks
Definition at line 374 of file FloGrid.H.
References _blocks.
376 std::vector<FloGridBlock>::iterator fgbi =
_blocks.begin();
378 fgbi++->DestroyGrid();
std::vector< FloGridBlock > _blocks
int OpenSolutionFile |
( |
const std::string & |
timestamp, |
|
|
double |
time, |
|
|
double |
unknown_number |
|
) |
| |
|
inline |
Definition at line 392 of file FloGrid.H.
References _casename, and _solnfile.
Referenced by main(), and WriteSolutionFile().
394 std::string solnfile(
_casename+
".sola_"+timestamp);
399 std::cout <<
"FloGrid::OpenSolutionFile Could not open source soln file, "
400 << solnfile << std::endl;
403 _solnfile << std::scientific << std::setprecision(16);
unsigned long time()
Get the value of a system timer with a millisecond precision.
Definition at line 294 of file FloGrid.H.
References _blocks, _casename, and FloGridBlock::ReadBlock().
Referenced by main().
296 std::string sourcegridfile(
_casename+
".grda_0.00000E-00");
300 Inf.open(sourcegridfile.c_str());
302 std::cout <<
"FloGrid::ReadAllBlocks: Could not open source grid file, "
303 << sourcegridfile << std::endl;
307 std::string ftimestamp;
308 std::getline(Inf,ftimestamp);
int ReadBlock(std::istream &BlockIn)
std::vector< FloGridBlock > _blocks
int ReadAllSolutions |
( |
const std::string & |
timestamp | ) |
|
|
inline |
Definition at line 444 of file FloGrid.H.
References _blocks, _casename, _time, and _unknown_number.
Referenced by main().
446 std::string sourcesolnfile(
_casename+
".sola_"+timestamp);
450 Inf.open(sourcesolnfile.c_str());
452 std::cout <<
"FloGrid::ReadAllSoln: Could not open source soln file, "
453 << sourcesolnfile << std::endl;
457 std::string ftimestamp;
458 std::getline(Inf,ftimestamp);
459 std::istringstream Istr(ftimestamp);
461 std::vector<FloGridBlock>::iterator fgbi =
_blocks.begin();
463 fgbi++->ReadBlockSoln(Inf);
464 if(!Inf && (fgbi !=
_blocks.end()))
std::vector< FloGridBlock > _blocks
int ReadNBlocks |
( |
int |
first, |
|
|
int |
nblocks |
|
) |
| |
|
inline |
Definition at line 319 of file FloGrid.H.
References _blocks, _casename, n, and FloGridBlock::ReadBlock().
Referenced by main().
321 std::string sourcegridfile(
_casename+
".grda_0.00000E-00");
325 Inf.open(sourcegridfile.c_str());
327 std::cout <<
"FloGrid::ReadAllBlocks: Could not open source grid file, "
328 << sourcegridfile << std::endl;
332 std::string ftimestamp;
333 std::getline(Inf,ftimestamp);
340 while(n < (first + nblocks)){
int ReadBlock(std::istream &BlockIn)
std::vector< FloGridBlock > _blocks
void SetGhostLayers |
( |
unsigned int |
n | ) |
|
|
inline |
Definition at line 380 of file FloGrid.H.
References _blocks.
Referenced by main().
382 std::vector<FloGridBlock>::iterator fgbi =
_blocks.begin();
std::vector< FloGridBlock > _blocks
void SetGhostLayers(unsigned int n)
std::ofstream& SolnFile |
( |
| ) |
|
|
inline |
double UnknownNumber |
( |
| ) |
const |
|
inline |
int WriteBlocks |
( |
std::ostream & |
Ouf | ) |
|
|
inline |
Definition at line 424 of file FloGrid.H.
References _blocks.
Referenced by main().
439 std::vector<FloGridBlock>::iterator fgbi =
_blocks.begin();
441 datasize += (fgbi++->WriteBlockSoln(Ouf));
std::vector< FloGridBlock > _blocks
int WriteSolutionFile |
( |
const std::string & |
timestamp, |
|
|
double |
time, |
|
|
double |
unknown_number |
|
) |
| |
|
inline |
Definition at line 409 of file FloGrid.H.
References _blocks, _solnfile, CloseSolutionFile(), and OpenSolutionFile().
413 std::vector<FloGridBlock>::iterator fgbi =
_blocks.begin();
std::vector< FloGridBlock > _blocks
unsigned long time()
Get the value of a system timer with a millisecond precision.
int OpenSolutionFile(const std::string ×tamp, double time, double unknown_number)
The documentation for this class was generated from the following file: