GEOSX
|
Functions | |
template<typename OUTTYPE > | |
int | DB_TYPE () |
template<typename TYPE > | |
int | GetNumberOfVariablesInField () |
template<typename TYPE > | |
int | GetTensorRank () |
template<typename OUTTYPE , typename TYPE > | |
OUTTYPE | CastField (const TYPE &field, int const i=0) |
template<> | |
real64 | CastField (R1Tensor const &field, int const i) |
Specialization for R1Tensor. More... | |
template<> | |
int | CastField< int, int > (const int &field, int const dummy) |
template<> | |
long int | CastField< long int, long int > (const long int &field, int const dummy) |
template<> | |
int | CastField< int, long int > (const long int &field, int const dummy) |
template<> | |
long long int | CastField< long long int, long long int > (const long long int &field, int const dummy) |
template<> | |
int | CastField< int, long long int > (const long long int &field, int const dummy) |
template<> | |
real64 | CastField< real64, real64 > (const real64 &field, int const dummy) |
template<> | |
float | CastField< float, real64 > (const real64 &field, int const dummy) |
template<typename TYPE > | |
void | SetVariableNames (string const &fieldName, string_array &varnamestring, char const *varnames[]) |
Namespace to hold some utilities needed by the functions in SiloFile.
OUTTYPE geosx::SiloFileUtilities::CastField | ( | const TYPE & | field, |
int const | i = 0 |
||
) |
OUTTYPE | the type to cast to |
TYPE | the type to cast from |
field | the value to cast |
i | the component of the varaible to cast, assuming there is dimensionaliy to the variable |
|
inline |
Specialization for R1Tensor.
field | the value to cast |
i | the component of the variable to cast |
Definition at line 749 of file SiloFile.hpp.
|
inline |
dummy
parameter introduced to remove warning field | the value to cast |
dummy | unused parameter |
Definition at line 839 of file SiloFile.hpp.
|
inline |
dummy
parameter introduced to remove warning field | the value to cast |
dummy | unused parameter |
Definition at line 761 of file SiloFile.hpp.
|
inline |
dummy
parameter introduced to remove warning field | the value to cast |
dummy | unused parameter |
Definition at line 787 of file SiloFile.hpp.
|
inline |
dummy
parameter introduced to remove warning field | the value to cast |
dummy | unused parameter |
Definition at line 813 of file SiloFile.hpp.
|
inline |
dummy
parameter introduced to remove warning field | the value to cast |
dummy | unused parameter |
Definition at line 774 of file SiloFile.hpp.
|
inline |
dummy
parameter introduced to remove warning field | the value to cast |
dummy | unused parameter |
Definition at line 800 of file SiloFile.hpp.
|
inline |
dummy
parameter introduced to remove warning field | the value to cast |
dummy | unused parameter |
Definition at line 826 of file SiloFile.hpp.
int geosx::SiloFileUtilities::DB_TYPE | ( | ) |
OUTTYPE | the type of data to write out (int,float,real64) |
This templated function is a "specialization only" definition. There is no general definition, only specializations for predetermined data types.
int geosx::SiloFileUtilities::GetNumberOfVariablesInField | ( | ) |
TYPE | the data type in question |
int geosx::SiloFileUtilities::GetTensorRank | ( | ) |
TYPE | the data type in question |
void geosx::SiloFileUtilities::SetVariableNames | ( | string const & | fieldName, |
string_array & | varnamestring, | ||
char const * | varnames[] | ||
) |
the | type of the field |
fieldName | the name of the field |
varnamestring | an array of strings that hold the generated names |
varnames | a pointer to each of the strings that hold the generated names |
This function sets variable names for a field. In some cases, this will just fill varnamestring with the input variable, and in other cases such as in the case of a tensor, the names will have a suffix with the component of the tensor.