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.