Block-Structured AMR Software Framework
AMReX_FabConv.cpp File Reference
#include <AMReX.H>
#include <AMReX_FabConv.H>
#include <AMReX_FArrayBox.H>
#include <AMReX_FPC.H>
#include <AMReX_REAL.H>
#include <AMReX_Utility.H>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <limits>

Namespaces

 amrex
 

Macros

#define GETARRAY(TYPE)
 
#define PUTARRAY(TYPE)
 

Functions

std::ostream & amrex::operator<< (std::ostream &os, const IntDescriptor &id)
 
std::istream & amrex::operator>> (std::istream &is, IntDescriptor &id)
 
void amrex::ONES_COMP_NEG (Long &n, int nb, Long incr)
 
int amrex::_pd_get_bit (char const *base, int offs, int nby, const int *ord)
 
void amrex::_pd_insert_field (Long in_long, int nb, char *out, int offs, int l_order, int l_bytes)
 
void amrex::_pd_set_bit (char *base, int offs)
 
std::ostream & amrex::operator<< (std::ostream &os, const RealDescriptor &rd)
 
std::istream & amrex::operator>> (std::istream &is, RealDescriptor &rd)
 

Macro Definition Documentation

◆ GETARRAY

#define GETARRAY (   TYPE)
Value:
void \
getarray (std::istream& is, \
Vector< TYPE >& ar) \
{ \
char c; \
is >> c; \
if (c != '(') \
amrex::Error("getarray(istream&): expected a \'(\'"); \
int size; \
is >> size; \
is >> c; \
if ( c != ',') \
amrex::Error("getarray(istream&): expected a \',\'"); \
is >> c; \
if (c != '(') \
amrex::Error("getarray(istream&): expected a \'(\'"); \
AMREX_ASSERT(size >= 0 && size < std::numeric_limits<int>::max()); \
ar.resize(size); \
for(int i = 0; i < size; ++i) \
is >> ar[i]; \
is >> c; \
if (c != ')') \
amrex::Error("getarray(istream&): expected a \')\'"); \
is >> c; \
if (c != ')') \
amrex::Error("getarray(istream&): expected a \')\'"); \
}
AMREX_GPU_HOST_DEVICE Long size(T const &b) noexcept
integer version
Definition: AMReX_GpuRange.H:26
@ max
Definition: AMReX_ParallelReduce.H:17
void Error(const std::string &msg)
Print out message to cerr and exit via amrex::Abort().
Definition: AMReX.cpp:215

◆ PUTARRAY

#define PUTARRAY (   TYPE)
Value:
void \
putarray (std::ostream& os, \
const Vector< TYPE >& ar) \
{ \
int i; \
os << '('; \
os << ar.size() << ", ("; \
for (i = 0; i < ar.size(); ++i) \
{ \
os << ar[i]; \
if (i != ar.size() - 1) \
os << ' '; \
} \
os << "))"; \
}