libMesh
|
This class facilitates inline conversion of an input data vector to a different precision level, depending on the underlying type of Real and whether or not the single_precision flag is set. More...
#include <exodusII_io_helper.h>
Public Member Functions | |
MappedOutputVector (const std::vector< Real > &vec_in, bool single_precision_in) | |
~MappedOutputVector ()=default | |
void * | data () |
Private Attributes | |
const std::vector< Real > & | our_data |
bool | single_precision |
std::vector< double > | double_vec |
std::vector< float > | float_vec |
This class facilitates inline conversion of an input data vector to a different precision level, depending on the underlying type of Real and whether or not the single_precision flag is set.
This should be used whenever floating point data is being written to the Exodus file. Note that if no precision conversion has to take place, there should be very little overhead involved in using this object.
Definition at line 1000 of file exodusII_io_helper.h.
libMesh::ExodusII_IO_Helper::MappedOutputVector::MappedOutputVector | ( | const std::vector< Real > & | vec_in, |
bool | single_precision_in | ||
) |
Definition at line 577 of file exodusII_io_helper.C.
References double_vec, float_vec, libMesh::index_range(), our_data, libMesh::Real, and single_precision.
|
default |
void * libMesh::ExodusII_IO_Helper::MappedOutputVector::data | ( | ) |
Definition at line 603 of file exodusII_io_helper.C.
References libMesh::Real.
Referenced by libMesh::Nemesis_IO_Helper::write_element_values(), libMesh::ExodusII_IO_Helper::write_element_values_element_major(), libMesh::Nemesis_IO_Helper::write_nodal_coordinates(), and libMesh::ExodusII_IO_Helper::write_nodal_coordinates().
|
private |
Definition at line 1016 of file exodusII_io_helper.h.
Referenced by MappedOutputVector().
|
private |
Definition at line 1017 of file exodusII_io_helper.h.
Referenced by MappedOutputVector().
|
private |
Definition at line 1014 of file exodusII_io_helper.h.
Referenced by MappedOutputVector().
|
private |
Definition at line 1015 of file exodusII_io_helper.h.
Referenced by MappedOutputVector().