File fieldperp.cxx

Functions

FieldPerp toFieldAligned(const FieldPerp &f, const std::string &region)
FieldPerp fromFieldAligned(const FieldPerp &f, const std::string &region)
FieldPerp operator-(const FieldPerp &f)

Unary minus. Returns the negative of given field, iterates over whole domain including guard/boundary cells.

const FieldPerp sliceXZ(const Field3D &f, int y)

Create a FieldPerp by slicing a 3D field at a given y.

void checkDataIsFiniteOnRegion(const FieldPerp &f, const std::string &region)
void checkData(const FieldPerp &f, const std::string &region)

Check if the data is valid.

void invalidateGuards(FieldPerp &var)

Force guard cells of passed field var to NaN.

bool operator==(const FieldPerp &a, const FieldPerp &b)

Test if two fields are the same, by checking that they are defined at the same y-index, and if the minimum absolute difference between them is less than 1e-10

std::ostream &operator<<(std::ostream &out, const FieldPerp &value)

Output a string describing a FieldPerp to a stream.

void swap(FieldPerp &first, FieldPerp &second) noexcept