NeoPZ
tpzcompmeshreferred.h
Go to the documentation of this file.
1 
5 //
6 // C++ Interface: tpzcompmeshreferred
7 //
8 // Description:
9 //
10 //
11 // Author: Philippe R. B. Devloo <phil@fec.unicamp.br>, (C) 2006
12 //
13 // Copyright: See COPYING file that comes with this distribution
14 //
15 //
16 #ifndef TPZCOMPMESHREFERRED_H
17 #define TPZCOMPMESHREFERRED_H
18 
19 #include "pzcmesh.h"
20 #include <vector>
21 
28 {
29 
31 
33 
34 public:
36 
38 
40 
41  virtual ~TPZCompMeshReferred();
42 
43  void LoadReferred(TPZCompMesh *mesh);
44 
45  void ResetReferred();
46 
47  TPZCompEl *ReferredEl(int64_t index);
48 
50  {
51  return fReferred;
52  }
53 
55  static void DivideReferredEl(TPZVec<TPZCompEl *> WhichRefine, TPZCompMesh * cmesh);
56 
61  virtual void Print(std::ostream & out = std::cout) const override;
62 
64  public:
65 int ClassId() const override;
66 
68  void Write(TPZStream &buf, int withclassid) const override;
69 
71  void Read(TPZStream &buf, void *context) override;
72 
73 
74 
75 };
76 
77 #endif
int ClassId() const override
Returns the unique identifier for reading/writing objects to streams.
TPZCompEl * ReferredEl(int64_t index)
void Read(TPZStream &buf, void *context) override
Read the element data from a stream.
void Write(TPZStream &buf, int withclassid) const override
Save the element data to a stream.
void LoadReferred(TPZCompMesh *mesh)
virtual void Print(std::ostream &out=std::cout) const override
Prints mesh data.
Implements the structure to allow one mesh to refer to the solution of another. Geometry.
Contains declaration of TPZCompMesh class which is a repository for computational elements...
static void DivideReferredEl(TPZVec< TPZCompEl *> WhichRefine, TPZCompMesh *cmesh)
Divide computational element recursively over referred elements.
TPZCompMesh * ReferredMesh() const
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48
Implements computational mesh. Computational Mesh.
Definition: pzcmesh.h:47
Defines the interface for saving and reading data. Persistency.
Definition: TPZStream.h:50
Defines the interface of a computational element. Computational Element.
Definition: pzcompel.h:59
TPZVec< int64_t > fReferredIndices