cuIBM
A GPU-based Immersed Boundary Method code
|
Implementation of the functions of the namespace io
.
More...
#include <sys/stat.h>
#include "io.h"
#include "utilities/types.h"
#include "utilities/boundaryCondition.h"
Go to the source code of this file.
Namespaces | |
io | |
Contains functions related to I/O tasks. | |
Functions | |
template<typename T > | |
T | toNumber (std::string str) |
Converts a string to a number. More... | |
std::vector< std::string > & | io::split (const std::string &s, char delim, std::vector< std::string > &elems) |
Splits a string given a delimiter. More... | |
std::vector< std::string > | io::split (const std::string &s, char delim) |
Splits a string given a delimiter. More... | |
void | io::readInputs (int argc, char **argv, parameterDB &DB, domain &D) |
Reads data inputs from the command-line and the simulation files. More... | |
void | io::initialiseDefaultDB (parameterDB &DB) |
Initializes the database with default values. More... | |
void | io::commandLineParse1 (int argc, char **argv, parameterDB &DB) |
Parses the command-line to get the case folder name and the device number. More... | |
void | io::commandLineParse2 (int argc, char **argv, parameterDB &DB) |
Overwrites parameters with additional arguments of the command-line. More... | |
std::string | io::stringFromPreconditionerType (preconditionerType s) |
Converts a preconditionerType to a std::string . More... | |
std::string | io::stringFromTimeScheme (timeScheme s) |
Converts a timeScheme to a std::string . More... | |
void | io::printSimulationInfo (parameterDB &DB, domain &D) |
Prints the parameters of the simulation. More... | |
void | io::printTimingInfo (Logger &logger) |
Prints the time spent to execute tasks. More... | |
void | io::writeGrid (std::string &caseFolder, domain &D) |
Writes grid-points coordinates into the file grid. More... | |
template<> | |
void | io::writeData< vecH > (std::string &caseFolder, int n, vecH &q, vecH &lambda, domain &D) |
Writes numerical data at a given time-step (on the host). More... | |
template<> | |
void | io::writeData< vecD > (std::string &caseFolder, int n, vecD &q, vecD &lambda, domain &D) |
Writes numerical data at a given time-step (on the device). More... | |
void | io::readData (std::string &caseFolder, int timeStep, real *x, std::string name) |
Reads numerical data at a given time-step. More... | |
void | io::printDeviceMemoryUsage (std::string label) |
Prints device memory usage. More... | |
Implementation of the functions of the namespace io
.
Definition in file io.cu.