|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
Spatial target resolution for the field-statistics pipeline. More...
#include "statistics_target.h"Go to the source code of this file.
Functions | |
| PetscErrorCode | PicurvLayoutDimensionIsNodeLike (FieldLayout layout, PetscInt dim, PetscBool *node_like) |
| Implementation of PicurvLayoutDimensionIsNodeLike(). | |
| static void | ResolveLayoutSpan (PetscBool node_like, PetscBool periodic, PetscInt size, PetscInt *lo, PetscInt *hi_exclusive) |
| Internal helper: resolves the layout-valid index span for one dimension. | |
| PetscErrorCode | SpatialTargetPlanCreate (UserCtx *user, FieldId field_id, PicurvStatisticsMask mask, SpatialTargetPlan *plan) |
| Implementation of SpatialTargetPlanCreate(). | |
| PetscErrorCode | SpatialTargetPlanLocalPointCount (const SpatialTargetPlan *plan, PetscInt *count) |
| Implementation of SpatialTargetPlanLocalPointCount(). | |
| PetscErrorCode | SpatialTargetPlanGlobalPointCount (const SpatialTargetPlan *plan, MPI_Comm comm, PetscInt *count) |
| Implementation of SpatialTargetPlanGlobalPointCount(). | |
| PetscBool | SpatialTargetPlanMaskAllows (const SpatialTargetPlan *plan, PetscReal nvert_value) |
| Implementation of SpatialTargetPlanMaskAllows(). | |
Spatial target resolution for the field-statistics pipeline.
Full API contract is documented with the declarations in include/statistics_target.h.
Definition in file statistics_target.c.
| PetscErrorCode PicurvLayoutDimensionIsNodeLike | ( | FieldLayout | layout, |
| PetscInt | dim, | ||
| PetscBool * | node_like | ||
| ) |
Implementation of PicurvLayoutDimensionIsNodeLike().
Reports whether a layout is node-like in one dimension.
Definition at line 15 of file statistics_target.c.
|
static |
Internal helper: resolves the layout-valid index span for one dimension.
Local to this translation unit.
The DMDA carries one extra high-side slot beyond the physical grid, and the solver's shifted convention places boundary/dummy values at index zero. Under periodicity the repair algorithms in Boundaries.c write index 0 and index size-1 from the opposite side, so both are dependent duplicates and the independent span starts at one in every layout.
Definition at line 61 of file statistics_target.c.
| PetscErrorCode SpatialTargetPlanCreate | ( | UserCtx * | user, |
| FieldId | field_id, | ||
| PicurvStatisticsMask | mask, | ||
| SpatialTargetPlan * | plan | ||
| ) |
Implementation of SpatialTargetPlanCreate().
Resolves the iteration domain for one field on one block.
Definition at line 76 of file statistics_target.c.
| PetscErrorCode SpatialTargetPlanLocalPointCount | ( | const SpatialTargetPlan * | plan, |
| PetscInt * | count | ||
| ) |
Implementation of SpatialTargetPlanLocalPointCount().
Counts the points this rank contributes.
Definition at line 140 of file statistics_target.c.
| PetscErrorCode SpatialTargetPlanGlobalPointCount | ( | const SpatialTargetPlan * | plan, |
| MPI_Comm | comm, | ||
| PetscInt * | count | ||
| ) |
Implementation of SpatialTargetPlanGlobalPointCount().
Counts the points contributed across a communicator.
Definition at line 160 of file statistics_target.c.
| PetscBool SpatialTargetPlanMaskAllows | ( | const SpatialTargetPlan * | plan, |
| PetscReal | nvert_value | ||
| ) |
Implementation of SpatialTargetPlanMaskAllows().
Reports whether a point passes the plan's mask.
Definition at line 176 of file statistics_target.c.