template<class T> class LevelData : public BoxLayoutData<T>

Data over a disjoint union of rectangles

Inheritance:

LevelData


public members:

LevelData()
LevelData(const DisjointBoxLayout & dp, int comps, const IntVect& ghost = IntVect::TheZeroVector(), const DataFactory<T>& a_factory = DefaultDataFactory<T>())

virtual void define(const DisjointBoxLayout & dp, int comps, const IntVect& ghost = IntVect::TheZeroVector(), const DataFactory<T>& a_factory = DefaultDataFactory<T>())
virtual void define(const LevelData<T>& da, const DataFactory<T>& a_factory = DefaultDataFactory<T>())
virtual void define(const LevelData<T>& da, const Interval& comps, const DataFactory<T>& a_factory = DefaultDataFactory<T>())
virtual void copyTo(const Interval& srcComps, BoxLayoutData<T>& dest, const Interval& destComps) const
virtual void copyTo(const Interval& srcComps, BoxLayoutData<T>& dest, const Interval& destComps, const Copier & copier) const
virtual void copyTo(const Interval& srcComps, LevelData<T>& dest, const Interval& destComps) const
virtual void copyTo(const Interval& srcComps, LevelData<T>& dest, const Interval& destComps, const Copier & copier) const
virtual void exchange(const Interval& comps)
virtual void exchange(const Interval& comps, const Copier & copier)
const IntVect& ghostVect() const
virtual void define(const BoxLayout& dp, int comps, const DataFactory<T>& factory)
virtual void define(const BoxLayoutData<T>& da, const DataFactory<T>& factory = DefaultDataFactory<T>())
virtual void define(const BoxLayoutData<T>& da, const Interval& comps, const DataFactory<T>& factory = DefaultDataFactory<T>())
const DisjointBoxLayout & getBoxes() const
const DisjointBoxLayout & disjointBoxLayout() const

Documentation

LevelData is-a BoxLayoutData. It is built from a DisjointBoxLayout instead though, thus making the data in a DisjointBoxLayout uniquely defined for all spatial indices defined by the underlying DisjointBoxLayout. It carries within it an inherent concept of ghost cells (which the user can choose to be empty).

Since LevelData is-a BoxLayoutData, all the methods required of the template class T for BoxLayoutData are also required for LevelData. LevelData does not have any extra requirements.

virtual void define (const LevelData<T>& da, const DataFactory<T>& a_factory = DefaultDataFactory<T>())
copy definer. this LevelData thrown away and da's LevelData copied

virtual void define (const LevelData<T>& da, const Interval& comps, const DataFactory<T>& a_factory = DefaultDataFactory<T>())
Copy definer. 'this' LevelData thrown away and da's LevelData copied. This LevelData is now defined for the range [0, comps.size()] and filled with the data in da from [comps.begin(), comps.end()]

virtual void copyTo (const Interval& srcComps, LevelData<T>& dest, const Interval& destComps) const
same as copyTo that takes a BoxLayoutData, except that it fills the ghost cells of 'dest' with data from 'this' also.


this class has no child classes.

alphabetic index hierarchy of classes


Chombo

Copyright Notice

This software is copyright (C) by the Lawrence Berkeley National Laboratory. Permission is granted to reproduce this software for non-commercial purposes provided that this notice is left intact.

It is acknowledged that the U.S. Government has rights to this software under Contract DE-AC03-765F00098 between the U.S. Department of Energy and the University of California.

This software is provided as a professional and academic contribution for joint exchange. Thus it is experimental, is provided ``as is'', with no warranties of any kind whatsoever, no support, no promise of updates, or printed documentation. By using this software, you acknowledge that the Lawrence Berkeley National Laboratory and Regents of the University of California shall have no liability with respect to the infringement of other copyrights by any part of this software.