#include <cstdlib>#include <cassert>#include <fstream>#include <iomanip>#include <iostream>#include <sstream>#include <string>#include <cstring>#include "roccom.h"
Go to the source code of this file.
Classes | |
| struct | AttrInfo |
| struct | ConnInfo |
| struct | Patch |
| struct | Block |
| struct | SGStr |
| struct | globarg |
| Holds some global program arguments. More... | |
Namespaces | |
| HDF2PLT | |
Macros | |
| #define | SwitchOnDataType(dType, funcCall) |
Functions | |
| int | getBlockNumber (const int zonenumber, const int NBlocks) |
| Gets the block number by parsing the leading significant digits. More... | |
| void | resolveConnectivity () |
| void | readBlock (std::ifstream &ifs) |
| void | readTopFile (const std::string file) |
| template<typename TT > | |
| void | PrintStructured (const TT *pData, const int ndims, const int *dims_nodes, int ghost, char loc, std::ostream &out) |
| template<typename TT > | |
| void | PrintUnstructured (const TT *pData, int size, bool panel, std::ostream &out) |
| void | PrintConn (const int *pConn, const ConnInfo &ci, char type, std::ostream &out) |
| void | COM_print_window (const std::string &wName, const std::string &timeStr, std::ostream &out, bool with_ghost, bool useTopFile) |
| COM_EXTERN_MODULE (Rocin) | |
| static void | remove_arg (int *argc, char ***argv, int i) |
| Remove an argument from the argument list. More... | |
| void | showUsage () |
| Prints usage and examples to STDOUT. More... | |
| void | parseArguments (int argc, char **argv) |
| Parses the command line arguments. More... | |
| int | main (int argc, char *argv[]) |
| Program main. More... | |
Variables | |
| struct HDF2PLT::SGStr | StructuredGrid |
| struct globarg | Program |
| #define SwitchOnDataType | ( | dType, | |
| funcCall | |||
| ) |
Definition at line 45 of file hdf2plt.C.
Referenced by COM_print_window().
| COM_EXTERN_MODULE | ( | Rocin | ) |
| void COM_print_window | ( | const std::string & | wName, |
| const std::string & | timeStr, | ||
| std::ostream & | out, | ||
| bool | with_ghost, | ||
| bool | useTopFile | ||
| ) |
Definition at line 401 of file hdf2plt.C.
References blocks, SGStr::blocks, COM_free_buffer(), COM_get_attribute(), COM_get_attributes(), COM_get_connectivities(), COM_get_panes(), COM_get_size(), getBlockNumber(), i, paneIds, PrintConn(), PrintStructured(), PrintUnstructured(), resolveConnectivity(), sin, HDF2PLT::StructuredGrid, SwitchOnDataType, and x.

|
inline |
Gets the block number by parsing the leading significant digits.
| zonenumber | the zone number. |
| NBlocks | the total number of blocks. |
Definition at line 154 of file hdf2plt.C.
References s.
Referenced by COM_print_window().

| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Program main.
| argc | argument counter. |
| argv | argument vector. |
Definition at line 863 of file hdf2plt.C.
References COM_call_function(), COM_finalize(), COM_get_attribute_handle(), COM_get_function_handle(), COM_init(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_print_window(), parseArguments(), and readTopFile().

| void parseArguments | ( | int | argc, |
| char ** | argv | ||
| ) |
Parses the command line arguments.
Parses the user-supplied command line arguments.
| argc | the argument counter. |
| argv | the argument vector. |
| argc | the argument counter |
| argv | the argument vector |
Definition at line 805 of file hdf2plt.C.
References i, and showUsage().
Referenced by main().


| void PrintConn | ( | const int * | pConn, |
| const ConnInfo & | ci, | ||
| char | type, | ||
| std::ostream & | out | ||
| ) |
Definition at line 331 of file hdf2plt.C.
References ConnInfo::m_numElements, ConnInfo::m_numGhost, ConnInfo::m_type, and sin.
| void PrintStructured | ( | const TT * | pData, |
| const int | ndims, | ||
| const int * | dims_nodes, | ||
| int | ghost, | ||
| char | loc, | ||
| std::ostream & | out | ||
| ) |
| void PrintUnstructured | ( | const TT * | pData, |
| int | size, | ||
| bool | panel, | ||
| std::ostream & | out | ||
| ) |
|
inline |
Definition at line 180 of file hdf2plt.C.
References Block::blockNumber, blocks, SGStr::blocks, Patch::boundaryCondition, Patch::coupled, Block::gridLevels, i, Patch::L1BEGIN, Patch::L1END, Patch::L2BEGIN, Patch::L2END, Patch::localBlockFaceNumer, Block::Ni, Block::Nj, Block::Nk, Block::pathces, Patch::remoteBlockFaceNumber, Patch::remoteBlockNumber, Patch::remoteL1BEGIN, Patch::remoteL1END, Patch::remoteL2BEGIN, Patch::remoteL2END, and HDF2PLT::StructuredGrid.
Referenced by readTopFile().

|
inline |
Definition at line 232 of file hdf2plt.C.
References i, SGStr::numBlocks, readBlock(), and HDF2PLT::StructuredGrid.
Referenced by main().


|
inlinestatic |
|
inline |
Definition at line 175 of file hdf2plt.C.
Referenced by COM_print_window().

| void showUsage | ( | ) |
Prints usage and examples to STDOUT.
Definition at line 785 of file hdf2plt.C.
Referenced by main(), parseArguments(), and parseCmdParameters().
