NeoPZ
pzsbstrmatrix.cpp
Go to the documentation of this file.
1 
6 #include "pzsbstrmatrix.h"
7 
8 #include "pzsbndmat.h"
9 #include "pzcmesh.h"
10 
12  return new TPZSBandStructMatrix(*this);
13 }
14 
16  TPZMatrix<STATE> *mat = Create();
17  rhs.Redim(mat->Rows(),1);
18  Assemble(*mat,rhs,guiInterface);
19  return mat;
20 }
21 
23  if (fEquationFilter.IsActive()) {
24  DebugStop();
25  }
26  int64_t neq = fEquationFilter.NActiveEquations();
27 
28  int64_t band = fMesh->BandWidth();
29  return new TPZSBMatrix<STATE>(neq,band);
30 }
31 
33 {
34 }
35 
37 {
38 }
Implements symmetric band matrices. Matrix.
Definition: pzsbndmat.h:25
Contains TPZSBMatrix class which implements symmetric band matrices(hermitian, for the complex case...
virtual TPZStructMatrix * Clone()
TPZEquationFilter fEquationFilter
Object which will determine which equations will be assembled.
virtual TPZMatrix< STATE > * Create()
Refines geometrical mesh (all the elements) num times.
Definition: pzstrmatrix.h:35
TPZCompMesh * fMesh
Pointer to the computational mesh from which the matrix will be generated.
int64_t NActiveEquations() const
Retorna o numero de equacoes ativas do sistema.
#define DebugStop()
Returns a message to user put a breakpoint in.
Definition: pzerror.h:20
virtual TPZMatrix< STATE > * CreateAssemble(TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface)
int64_t Rows() const
Returns number of rows.
Definition: pzmatrix.h:803
Contains declaration of TPZCompMesh class which is a repository for computational elements...
int Redim(const int64_t newRows, const int64_t newCols) override
Redimension a matrix and ZERO your elements.
Definition: pzfmatrix.h:616
virtual void Assemble(TPZMatrix< STATE > &mat, TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface) override
Assemble the global system of equations into the matrix which has already been created.
Definition: pzstrmatrix.cpp:80
int BandWidth()
This method computes the bandwidth of the system of equations.
Definition: pzcmesh.cpp:747
Contains the TPZSBandStructMatrix class which implements Symmetric Banded Structural Matrices...
Implements computational mesh. Computational Mesh.
Definition: pzcmesh.h:47