4 #include <AMReX_Config.H>
121 [[nodiscard]]
const Long*
format () const&;
129 [[nodiscard]] const
int*
order () const&;
137 [[nodiscard]]
int numBytes () const;
A Descriptor of the Long Integer type.
Definition: AMReX_FabConv.H:29
Long numbytes
Definition: AMReX_FabConv.H:60
Ordering ord
Definition: AMReX_FabConv.H:61
Ordering
An enumeration describing the two orderings that we currently support: NormalOrder and ReverseOrder....
Definition: AMReX_FabConv.H:38
@ ReverseOrder
Definition: AMReX_FabConv.H:38
@ NormalOrder
Definition: AMReX_FabConv.H:38
bool operator==(const IntDescriptor &id) const
The equality operator.
Definition: AMReX_FabConv.cpp:38
bool operator!=(const IntDescriptor &id) const
The inequality operator.
Definition: AMReX_FabConv.cpp:44
IntDescriptor()=default
The default constructor. Does not build a proper IntDescriptor. This should only be used when you nee...
friend std::istream & operator>>(std::istream &is, IntDescriptor &id)
Definition: AMReX_FabConv.cpp:66
int numBytes() const
Returns the number of bytes.
Definition: AMReX_FabConv.cpp:32
Ordering order() const
Returns the ordering.
Definition: AMReX_FabConv.cpp:26
A Descriptor of the Real Type.
Definition: AMReX_FabConv.H:105
static void SetReadBufferSize(int rbs)
Set read and write buffer sizes.
Definition: AMReX_FabConv.cpp:150
static void convertToNativeFormat(Real *out, Long nitems, void *in, const RealDescriptor &id)
Convert nitems in RealDescriptor format to native Real format. The out array is assumed to be large e...
Definition: AMReX_FabConv.cpp:974
const Vector< int > & orderarray() const &
Returns const Vector<int> reference to the order array.
Definition: AMReX_FabConv.cpp:118
static int writeBufferSize
Definition: AMReX_FabConv.H:247
static void convertFromNativeDoubleFormat(std::ostream &os, Long nitems, const double *in, const RealDescriptor &od)
Convert nitems doubles in native format to RealDescriptor format and write them to the ostream.
Definition: AMReX_FabConv.cpp:1147
static void convertFromNativeFormat(std::ostream &os, Long nitems, const Real *in, const RealDescriptor &od)
Convert nitems Reals in native format to RealDescriptor format and write them to the ostream.
Definition: AMReX_FabConv.cpp:1063
RealDescriptor()=default
The default constructor. Does not build a proper RealDescriptor. This should only be used when you ne...
static void convertFromNativeFloatFormat(std::ostream &os, Long nitems, const float *in, const RealDescriptor &od)
Convert nitems floats in native format to RealDescriptor format and write them to the ostream.
Definition: AMReX_FabConv.cpp:1105
static void convertToNativeDoubleFormat(double *out, Long nitems, std::istream &is, const RealDescriptor &id)
Read nitems from istream in RealDescriptor format and convert them to the native double format....
Definition: AMReX_FabConv.cpp:1230
static bool bAlwaysFixDenormals
Definition: AMReX_FabConv.H:246
static int readBufferSize
Definition: AMReX_FabConv.H:248
static void SetWriteBufferSize(int wbs)
Definition: AMReX_FabConv.cpp:157
static RealDescriptor * newRealDescriptor(int fmt, int prec, const char *systype, int ordering)
Returns a RealDescriptor on the heap detailing requested floating-point type. Here format,...
Definition: AMReX_FabConv.cpp:218
const Vector< Long > & formatarray() const &
Returns const Vector<Long> reference to the format array.
Definition: AMReX_FabConv.cpp:104
const int * order() const &
Returns the order array as a const int*.
Definition: AMReX_FabConv.cpp:111
static void SetFixDenormals()
Set to always fix denormals when converting to native format.
Definition: AMReX_FabConv.cpp:144
const Long * format() const &
Returns the format array as a const Long*.
Definition: AMReX_FabConv.cpp:97
Vector< Long > fr
Definition: AMReX_FabConv.H:244
RealDescriptor * clone() const
Returns a copy of this RealDescriptor on the heap. The user is responsible for deletion.
Definition: AMReX_FabConv.cpp:164
static void convertToNativeFloatFormat(float *out, Long nitems, std::istream &is, const RealDescriptor &id)
Read nitems from istream in RealDescriptor format and convert them to the native float format....
Definition: AMReX_FabConv.cpp:1188
int numBytes() const
Returns the number of bytes in the Real.
Definition: AMReX_FabConv.cpp:125
Vector< int > ord
Definition: AMReX_FabConv.H:245
This class is a thin wrapper around std::vector. Unlike vector, Vector::operator[] provides bound che...
Definition: AMReX_Vector.H:27
Definition: AMReX_Amr.cpp:49
std::ostream & operator<<(std::ostream &os, AmrMesh const &amr_mesh)
Definition: AMReX_AmrMesh.cpp:1236
std::istream & operator>>(std::istream &is, BoxND< dim > &bx)
Read from istream.
Definition: AMReX_Box.H:1700