Newer
Older
// ============================================================================
// == ==
// == AMDiS - Adaptive multidimensional simulations ==
// == ==

Thomas Witkowski
committed
// == http://www.amdis-fem.org ==
// == ==
// ============================================================================

Thomas Witkowski
committed
//
// Software License for AMDiS
//
// Copyright (c) 2010 Dresden University of Technology
// All rights reserved.
// Authors: Simon Vey, Thomas Witkowski et al.
//
// This file is part of AMDiS
//
// See also license.opensource.txt in the distribution.
/** \file ElementRegionED.h */
#ifndef AMDIS_ELEMENTREGIONED_H
#define AMDIS_ELEMENTREGIONED_H
#include "ElementData.h"
#include "FixVec.h"
namespace AMDiS {
class ElementRegion_ED : public ElementData
{
public:
inline bool isOfType(int typeID) const
{
if (typeID == ELEMENT_REGION)
return true;
return false;
class Creator : public CreatorInterface<ElementData>
{
public:
};
ElementRegion_ED(ElementData *decorated = NULL)
: ElementData(decorated),
bool refineElementData(Element* parent,
Element* child1,
Element* child2,
int elType)
{
ElementData::refineElementData(parent, child1, child2, elType);
ElementRegion_ED *ep;
ep = new ElementRegion_ED(child1->getElementData());
child1->setElementData(ep);
ep = new ElementRegion_ED(child2->getElementData());
child2->setElementData(ep);
return false;
ElementRegion_ED *newObj = new ElementRegion_ED;
newObj->region = region;
newObj->decorated = ElementData::clone();
inline const int getTypeID() const
{
return ELEMENT_REGION;
}
{
ElementData::serialize(out);
{
ElementData::deserialize(in);
inline void setRegion(int r)
};
}
#endif