chombo-discharge
Loading...
Searching...
No Matches
CD_PetscAMRCell.H File Reference

Declaration of a cell type for indicating if a cell is covered, ghost, etc. More...

#include "petsc.h"
#include <SPMD.H>
#include <CD_NamespaceHeader.H>
#include <CD_NamespaceFooter.H>
Include dependency graph for CD_PetscAMRCell.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PetscAMRCell
 Class for storing grid information and corresponding PETSc rows. Used for mapping between Chombo and PETSC. More...

Functions

constexpr int linearSize (const PetscAMRCell &a_amrCell)
 PetscAMRCell specialization of the linearization size function used by LevelData.
void linearIn (PetscAMRCell &a_amrCell, const void *const a_buffer)
 PetscAMRCell specialization of the linearization function used by LevelData.
void linearOut (void *const a_buffer, const PetscAMRCell &a_amrCell)
 PetscAMRCell specialization of the linearization function used by LevelData.

Detailed Description

Declaration of a cell type for indicating if a cell is covered, ghost, etc.

Author
Robert Marskar

Function Documentation

◆ linearIn()

void linearIn ( PetscAMRCell & a_amrCell,
const void *const a_buffer )

PetscAMRCell specialization of the linearization function used by LevelData.

Parameters
[out]a_amrCellInput object
[in]a_bufferBuffer

◆ linearOut()

void linearOut ( void *const a_buffer,
const PetscAMRCell & a_amrCell )

PetscAMRCell specialization of the linearization function used by LevelData.

Parameters
[out]a_bufferBuffer to which we write the data
[in]a_amrCellObject to linearize

◆ linearSize()

int linearSize ( const PetscAMRCell & a_amrCell)
constexpr

PetscAMRCell specialization of the linearization size function used by LevelData.

Parameters
[in]a_amrCellInput object
Returns
Number of bytes needed to linearize a_amrCell.