25 std::cout << __PRETTY_FUNCTION__ <<
" called with fNNodes = " <<
fNNodes 26 <<
" and fNElements = " <<
fNElements << std::endl;
54 int64_t iadj = elementgraph.
NElements()* nnodes_per_element* (nnodes_per_element-1);
58 int64_t inpn = nnodes_per_element *
fNElements;
74 int firstindex = elementgraphindex[iel+1];
75 int lastindex = elementgraphindex[iel+2];
77 cout <<
"Element : " << iel+1 <<
" : ";
78 for(no = firstindex; no<lastindex; no++)
80 cout << elementgraph[no] <<
" ";
85 static pthread_mutex_t Lock_clindex = PTHREAD_MUTEX_INITIALIZER;
89 gegra_(&
fNNodes, &fNElements, &inpn, &elementgraph[1], &elementgraphindex[1], &iadj, &adj[0], &xadj[0], &nop);
95 cout <<
"node index vector ";
99 cout << xadj[no] <<
" ";
100 if(no && !(no%30)) cout << endl;
106 int firstindex = xadj[no]-1;
107 int lastindex = xadj[no+1]-1;
109 cout <<
"Node : " << no+1 <<
" : ";
110 for(el = firstindex; el<lastindex; el++)
112 cout << adj[el] <<
" ";
125 int64_t old_profile=0;
126 int64_t new_profile=0;
130 label_(&fNNodes , &e2, &adj[0], &xadj[0], &perm[1], &iw[1], &old_profile, &new_profile);
138 for(i=0;i<perm.
NElements();i++) perm[i]=aux[i+1]-1;
140 for(i=0;i<perm.
NElements();i++) iperm[perm[i]]=i;
#define PZ_PTHREAD_MUTEX_UNLOCK(mutex, fn)
virtual void Resequence(TPZVec< int64_t > &perm, TPZVec< int64_t > &iperm)
int label_(int64_t *n, int64_t *e2, int64_t *adj, int64_t *xadj, int64_t *nnn, int64_t *iw, int64_t *oldpro, int64_t *newpro)
TPZVec< int64_t > fElementGraphIndex
Indicates for each element the index of the first entry with fElementGraph for that element The size ...
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object reallocating the necessary storage, copying the existing objects to the new...
#define PZ_PTHREAD_MUTEX_LOCK(mutex, fn)
This abstract class which defines the behavior which derived classes need to implement for implement...
int64_t fNElements
Number of elements in the graph.
int64_t fNNodes
Number of nodes in the graph.
TPZVec< int64_t > fElementGraph
Node number of each element.
int64_t NElements() const
Returns the number of elements of the vector.
Contains the TPZSloan class.
int gegra_(int64_t *n, int64_t *ne, int64_t *, int64_t *npn, int64_t *xnpn, int64_t *iadj, int64_t *adj, int64_t *xadj, int *nop)
Purpose: Form adjacency list for a graph corresponding to a finite element mesh.