pnm 1.0.3
peclet.pnm — pore-network extraction from SDF geometry (Kokkos)
Loading...
Searching...
No Matches
pnm::GridGeo Struct Reference

Single-rank geometry policy: the field IS the whole periodic grid, owned == field coords, gid == index. More...

#include <pore_kernels.hpp>

Public Member Functions

Index cell (int lx, int ly, int lz) const
Index gid (int lx, int ly, int lz) const
void gcoord (int lx, int ly, int lz, int &gx, int &gy, int &gz) const
bool inOwned (int, int, int) const
Index owned (int ix, int iy, int iz) const
void ownedCoords (Index o, int &ix, int &iy, int &iz) const
Index localOf (Index gid) const
Index cellAtGlobal (int gx, int gy, int gz) const
std::size_t numOwned () const

Static Public Member Functions

static GridGeo of (I3 res)

Public Attributes

int nx
int ny
int nz
int g

Detailed Description

Single-rank geometry policy: the field IS the whole periodic grid, owned == field coords, gid == index.

All members plain ints so the POD captures by value into lambdas.

Definition at line 101 of file pore_kernels.hpp.

Member Function Documentation

◆ of()

GridGeo pnm::GridGeo::of ( I3 res)
inlinestatic

◆ cell()

Index pnm::GridGeo::cell ( int lx,
int ly,
int lz ) const
inline

Definition at line 106 of file pore_kernels.hpp.

References nx, ny, nz, and pnm::wrapc().

Referenced by cellAtGlobal(), gid(), and owned().

◆ gid()

Index pnm::GridGeo::gid ( int lx,
int ly,
int lz ) const
inline

Definition at line 109 of file pore_kernels.hpp.

References cell().

Referenced by localOf().

◆ gcoord()

void pnm::GridGeo::gcoord ( int lx,
int ly,
int lz,
int & gx,
int & gy,
int & gz ) const
inline

Definition at line 110 of file pore_kernels.hpp.

References nx, ny, nz, and pnm::wrapc().

◆ inOwned()

bool pnm::GridGeo::inOwned ( int ,
int ,
int  ) const
inline

Definition at line 115 of file pore_kernels.hpp.

◆ owned()

Index pnm::GridGeo::owned ( int ix,
int iy,
int iz ) const
inline

Definition at line 116 of file pore_kernels.hpp.

References cell().

◆ ownedCoords()

void pnm::GridGeo::ownedCoords ( Index o,
int & ix,
int & iy,
int & iz ) const
inline

Definition at line 117 of file pore_kernels.hpp.

References nx, and ny.

◆ localOf()

Index pnm::GridGeo::localOf ( Index gid) const
inline

Definition at line 122 of file pore_kernels.hpp.

References gid().

◆ cellAtGlobal()

Index pnm::GridGeo::cellAtGlobal ( int gx,
int gy,
int gz ) const
inline

Definition at line 123 of file pore_kernels.hpp.

References cell().

◆ numOwned()

std::size_t pnm::GridGeo::numOwned ( ) const
inline

Definition at line 126 of file pore_kernels.hpp.

References nx, ny, and nz.

Member Data Documentation

◆ nx

int pnm::GridGeo::nx

Definition at line 102 of file pore_kernels.hpp.

Referenced by cell(), gcoord(), numOwned(), and ownedCoords().

◆ ny

int pnm::GridGeo::ny

Definition at line 102 of file pore_kernels.hpp.

Referenced by cell(), gcoord(), numOwned(), and ownedCoords().

◆ nz

int pnm::GridGeo::nz

Definition at line 102 of file pore_kernels.hpp.

Referenced by cell(), gcoord(), and numOwned().

◆ g

int pnm::GridGeo::g

Definition at line 103 of file pore_kernels.hpp.


The documentation for this struct was generated from the following file: