Data Fileds
Numerics
Collaboration diagram for Data Fileds:

## Classes

class | asl::Block
class | asl::AbstractDataWithGhostNodes
class | asl::DataWithGhostNodes< V >
class | asl::AbstractData
class | asl::DataWrapper< V >
| Class defines a folding rule into a 1D/2D/3D bulk. More...

## Functions

template<typename T >
SPDataWrapperACLData | asl::generateDataContainerACL_SP (const Block &b, unsigned int n=1)
| generates pointer to ACL Data field with `n` components More...
template<typename T >
SPDataWithGhostNodesACLData | asl::generateDataContainerACL_SP (const Block &b, unsigned int n, unsigned int gN)
| generates pointer to ACL Data field with `n` components and `gN` ghost nodes More...
template<typename T >
SPDataWithGhostNodesACLData | asl::generateDataContainerACL_SP (const Block &b, unsigned int n, unsigned int gN, acl::CommandQueue queue)
| generates pointer to ACL Data field with `n` components and `gN` ghost nodes More...
SPDataWithGhostNodesACLData | asl::generateDataContainerACL_SP (const Block &b, acl::TypeID t, unsigned int n, unsigned int gN, acl::CommandQueue queue)
| generates pointer to ACL Data field with `n` components of type `t` and `gN` ghost nodes More...
SPDataWithGhostNodesACLData | asl::generateDataContainerACL_SP (const Block &b, acl::TypeID t, unsigned int n, unsigned int gN)
| generates pointer to ACL Data field with `n` components of type `t` and `gN` ghost nodes More...
SPDataWrapperACL | asl::generateDataContainer_SP (const Block &b, const acl::VectorOfElements &a)
SPDataWithGhostNodesACL | asl::generateDataContainer_SP (const Block &b, const acl::VectorOfElements &a, unsigned int gN)
| generates pointer to ACL Data field with container `a` and `gN` ghost nodes More...
template<typename T >
SPDataWithGhostNodesACL | asl::generateDataContainerConst_SP (const Block &b, T a, unsigned int gN)
SPAbstractDataWithGhostNodes | asl::generateDCFullSafe (SPAbstractDataWithGhostNodes d)
| generates data container without ghost nodes and safe outOfboundary element acces More...
SPAbstractDataWithGhostNodes | asl::generateDCFullSafe (SPAbstractDataWithGhostNodes d, double outVal)
| generates data container without ghost nodes and safe outOfboundary element acces More...
const Block | asl::offset (const Block &bl, int a=1)
const unsigned int | asl::nD (const Block &b)
const bool | asl::in (const Block &b, AVec<> a)
const bool | asl::in (const Block &b, AVec< int > a)
SPDataWithGhostNodesACLData | asl::clone (SPDataWithGhostNodesACLData d)
SPDataWithGhostNodesACLData | asl::clone (SPDataWithGhostNodesACLData d, unsigned int n)

## Detailed Description

## Function Documentation

## clone() [1/2]

SPDataWithGhostNodesACLData asl::clone | ( | SPDataWithGhostNodesACLData | d | ) |

Creates new DataWithGhostNodesACLData with same data structure like `d`

## clone() [2/2]

SPDataWithGhostNodesACLData asl::clone | ( | SPDataWithGhostNodesACLData | d,
|  | unsigned int | n
| ) |  |

Creates new DataWithGhostNodesACLData with same data structure like `d` containing `n` first elements

## generateDataContainer_SP() [1/2]

SPDataWrapperACL asl::generateDataContainer_SP | ( | const Block & | b,
|  | const acl::VectorOfElements & | a
| ) |  |

Examples
  cubeGravity.cc, cubeIncompressibleGravity.cc, cubePoroelasticGravity.cc, flow.cc, poroelastic.cc, testSMPhi.cc, and testSMPhiBV.cc.

## generateDataContainer_SP() [2/2]

SPDataWithGhostNodesACL asl::generateDataContainer_SP | ( | const Block & | b,
|  | const acl::VectorOfElements & | a,
|  | unsigned int | gN
| ) |  |

generates pointer to ACL Data field with container `a` and `gN` ghost nodes

## generateDataContainerACL_SP() [1/5]

SPDataWithGhostNodesACLData asl::generateDataContainerACL_SP | ( | const Block & | b,
|  | acl::TypeID | t,
|  | unsigned int | n,
|  | unsigned int | gN
| ) |  |

generates pointer to ACL Data field with `n` components of type `t` and `gN` ghost nodes

## generateDataContainerACL_SP() [2/5]

SPDataWithGhostNodesACLData asl::generateDataContainerACL_SP | ( | const Block & | b,
|  | acl::TypeID | t,
|  | unsigned int | n,
|  | unsigned int | gN,
|  | acl::CommandQueue | queue
| ) |  |

generates pointer to ACL Data field with `n` components of type `t` and `gN` ghost nodes

## generateDataContainerACL_SP() [3/5]

template<typename T >

SPDataWithGhostNodesACLData asl::generateDataContainerACL_SP | ( | const Block & | b,
|  | unsigned int | n,
|  | unsigned int | gN
| ) |  |

generates pointer to ACL Data field with `n` components and `gN` ghost nodes

## generateDataContainerACL_SP() [4/5]

template<typename T >

SPDataWithGhostNodesACLData asl::generateDataContainerACL_SP | ( | const Block & | b,
|  | unsigned int | n,
|  | unsigned int | gN,
|  | acl::CommandQueue | queue
| ) |  |

generates pointer to ACL Data field with `n` components and `gN` ghost nodes

## generateDataContainerACL_SP() [5/5]

template<typename T >

SPDataWrapperACLData asl::generateDataContainerACL_SP | ( | const Block & | b,
|  | unsigned int | n = `1`
| ) |  |

generates pointer to ACL Data field with `n` components

## generateDataContainerConst_SP()

template<typename T >

SPDataWithGhostNodesACL asl::generateDataContainerConst_SP | ( | const Block & | b,
|  | T | a,
|  | unsigned int | gN
| ) |  |

Examples
  levelSetBasic.cc, levelSetFacetedGrowth.cc, and levelSetNormalGrowth.cc.

## generateDCFullSafe() [1/2]

SPAbstractDataWithGhostNodes asl::generateDCFullSafe | ( | SPAbstractDataWithGhostNodes | d | ) |

generates data container without ghost nodes and safe outOfboundary element acces

## generateDCFullSafe() [2/2]

SPAbstractDataWithGhostNodes asl::generateDCFullSafe | ( | SPAbstractDataWithGhostNodes | d,
|  | double | outVal
| ) |  |

generates data container without ghost nodes and safe outOfboundary element acces

## in() [1/2]

const bool asl::in | ( | const Block & | b,
|  | AVec< int > | a
| ) |  |

inline

Checks whether `a` inside of `b`

Definition at line 232 of file aslBlocks.h.

## in() [2/2]

const bool asl::in | ( | const Block & | b,
|  | AVec<> | a
| ) |  |

inline

Checks whether `a` inside of `b`

Definition at line 226 of file aslBlocks.h.

## nD()

const unsigned int asl::nD | ( | const Block & | b | ) |

inline

Dimensionality of the block

Todo:
  rename here and everywhere to dimNum???

Dimensionality of the block

Todo:
  rename here and everywhere to dimNum???

Definition at line 220 of file aslBlocks.h.

## offset()

const Block asl::offset | ( | const Block & | bl,
|  | int | a = `1`
| ) |  |

results Block which is inset or outset of the `bl` on value of a