Skip to content

Commit

Permalink
Made the integration point object const
Browse files Browse the repository at this point in the history
  • Loading branch information
philippedevloo committed Nov 1, 2021
1 parent 6b5605f commit 8345af6
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion Matrix/pztrnsform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ TPZTransform<T> TPZTransform<T>::Multiply(TPZTransform<T> &right) {
}

template<class T>
void TPZTransform<T>::Apply(TPZVec<T> &in, TPZVec<T> &out){
void TPZTransform<T>::Apply(const TPZVec<T> &in, TPZVec<T> &out){
#ifdef PZDEBUG


Expand Down
2 changes: 1 addition & 1 deletion Matrix/pztrnsform.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TPZTransform : public TPZSavable {
TPZTransform<T> Multiply(TPZTransform<T> &right);

/** @brief Transforms the vector */
void Apply(TPZVec<T> &vectorin,TPZVec<T> &vectorout);
void Apply(const TPZVec<T> &vectorin,TPZVec<T> &vectorout);

void PrintInputForm(std::ostream &out);

Expand Down
6 changes: 3 additions & 3 deletions Shape/pzshapecube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace pzshape {



void TPZShapeCube::ShapeCorner(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapeCube::ShapeCorner(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{

REAL x[2],dx[2],y[2],dy[2],z[2],dz[2];
Expand Down Expand Up @@ -90,7 +90,7 @@ namespace pzshape {
* @param phi (input) value of the (8) shape functions
* @param dphi (input) value of the derivatives of the (8) shape functions holding the derivatives in a column
*/
void TPZShapeCube::ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapeCube::ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
int is;
// contribute the ribs
Expand Down Expand Up @@ -157,7 +157,7 @@ namespace pzshape {
* @param phi (input) value of the (8) corner shape functions
* @param dphi (input) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
void TPZShapeCube::ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapeCube::ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
int is;
// contribute the ribs
Expand Down
6 changes: 3 additions & 3 deletions Shape/pzshapecube.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace pzshape {
* @param phi (output) value of the (8) shape functions
* @param dphi (output) value of the derivatives of the (8) shape functions holding the derivatives in a column
*/
static void ShapeCorner(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeCorner(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
/*
{
Expand Down Expand Up @@ -154,15 +154,15 @@ namespace pzshape {
* @param phi (input) value of the (8) corner shape functions
* @param dphi (input) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Computes the generating shape functions for a hexahedral element
* @param pt (input) point where the shape function is computed
* @param phi (input) value of the (8) corner shape functions
* @param dphi (input) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

private:

Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapelinear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ namespace pzshape {
* @param phi (input/output) value of the shape functions
* @param dphi (input/output) value of the derivatives of the shape functions holding the derivatives in a column
*/
void TPZShapeLinear::ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapeLinear::ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{

phi(2,0) = phi(0,0)*phi(1,0);
Expand Down Expand Up @@ -266,7 +266,7 @@ namespace pzshape {
phi(ord,0) = phiint(ord-2,0)*phiblend(2,0);
}
}
void TPZShapeLinear::ShapeCorner(TPZVec<REAL> &pt,TPZFMatrix<REAL> &phi,TPZFMatrix<REAL> &dphi){
void TPZShapeLinear::ShapeCorner(const TPZVec<REAL> &pt,TPZFMatrix<REAL> &phi,TPZFMatrix<REAL> &dphi){
phi(0,0) = (1-pt[0])/2.;
phi(1,0) = (1+pt[0])/2.;
dphi(0,0) = -0.5;
Expand Down
6 changes: 3 additions & 3 deletions Shape/pzshapelinear.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ namespace pzshape {
*/
static void Shape(TPZVec<REAL> &pt, TPZVec<int64_t> &id, TPZVec<int> &order,TPZFMatrix<REAL> &phi,TPZFMatrix<REAL> &dphi);

static void ShapeCorner(TPZVec<REAL> &pt,TPZFMatrix<REAL> &phi,TPZFMatrix<REAL> &dphi);
static void ShapeCorner(const TPZVec<REAL> &pt,TPZFMatrix<REAL> &phi,TPZFMatrix<REAL> &dphi);

static void SideShape(int side, TPZVec<REAL> &pt, TPZVec<int64_t> &id, TPZVec<int> &order,TPZFMatrix<REAL> &phi,TPZFMatrix<REAL> &dphi);

Expand Down Expand Up @@ -188,15 +188,15 @@ namespace pzshape {
* @param phi (input/output) value of the shape functions
* @param dphi (input/output) value of the derivatives of the shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Computes the generating shape functions for a quadrilateral element
* @param pt (input) point where the shape function is computed
* @param phi (input/output) value of the shape functions
* @param dphi (input/output) value of the derivatives of the shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
ShapeGenerating(pt, phi, dphi);
}
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapepiram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace pzshape {
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
void TPZShapePiram::ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapePiram::ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
int is;
// contribute the ribs
Expand Down Expand Up @@ -125,7 +125,7 @@ namespace pzshape {
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
void TPZShapePiram::ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapePiram::ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
int is;
// contribute the ribs
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapepiram.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ namespace pzshape {
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Computes the generating shape functions for a quadrilateral element
* @param pt (input) point where the shape function is computed
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Projects a point from the interior of the element to a rib
Expand Down
6 changes: 3 additions & 3 deletions Shape/pzshapepoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace pzshape{
phi(0,0) = 1.;
}

static void ShapeCorner(TPZVec<REAL> &pt,TPZFMatrix<REAL> &phi,TPZFMatrix<REAL> &dphi)
static void ShapeCorner(const TPZVec<REAL> &pt,TPZFMatrix<REAL> &phi,TPZFMatrix<REAL> &dphi)
{
phi(0,0) = 1.;
}
Expand All @@ -55,9 +55,9 @@ namespace pzshape{
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi){}
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi){}

static void ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi){}
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi){}

static void ShapeInternal(int side, TPZVec<REAL> &x, int order, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
Expand Down
8 changes: 4 additions & 4 deletions Shape/pzshapeprism.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace pzshape {

REAL TPZShapePrism::gFaceSum3dPrisma2d[5][2] = { {-1.,-1.},{-1.,0.},{0.,0.},{-1.,0.},{-1.,-1.} };

void TPZShapePrism::ShapeCorner(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi) {
void TPZShapePrism::ShapeCorner(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi) {
phi(0,0) = .5*(1.-pt[0]-pt[1])*(1.-pt[2]);
phi(1,0) = .5*pt[0]*(1.-pt[2]);
phi(2,0) = .5*pt[1]*(1.-pt[2]);
Expand Down Expand Up @@ -72,7 +72,7 @@ namespace pzshape {
dphi(2,5) = .5*pt[1];
}
//esse metodo nao vai ser mais utilizado
void TPZShapePrism::CornerShape(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi) {
void TPZShapePrism::CornerShape(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi) {
phi(0,0) = .5*(1.-pt[0]-pt[1])*(1.-pt[2]);
phi(1,0) = .5*pt[0]*(1.-pt[2]);
phi(2,0) = .5*pt[1]*(1.-pt[2]);
Expand Down Expand Up @@ -112,7 +112,7 @@ namespace pzshape {
* @param phi (input) value of the (4) shape functions
* @param dphi (input) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
void TPZShapePrism::ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapePrism::ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
int is;
// 9 ribs
Expand Down Expand Up @@ -212,7 +212,7 @@ namespace pzshape {
* @param phi (input) value of the (4) shape functions
* @param dphi (input) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
void TPZShapePrism::ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapePrism::ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
int is;
// 9 ribs
Expand Down
8 changes: 4 additions & 4 deletions Shape/pzshapeprism.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,23 @@ namespace pzshape {
* @param phi (output) value of the (6) shape functions
* @param dphi (output) value of the derivatives of the (6) shape functions holding the derivatives in a column
*/
static void CornerShape(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void CornerShape(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Computes the generating shape functions for the prism element
* @param pt (input) point where the shape function is computed
* @param phi (input) value of the (4) shape functions
* @param dphi (input) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Computes the generating shape functions for the prism element
* @param pt (input) point where the shape function is computed
* @param phi (input) value of the (4) shape functions
* @param dphi (input) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Compute the internal functions of the prism shape function at a point
Expand Down Expand Up @@ -184,7 +184,7 @@ namespace pzshape {
static int NShapeF(const TPZVec<int> &order);

static void ShapeInternal(int side, TPZVec<REAL> &x, int order, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeCorner(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeCorner(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

};

Expand Down
6 changes: 3 additions & 3 deletions Shape/pzshapequad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace pzshape {

REAL TPZShapeQuad::gRibTrans2dQ1d[4][2] = { {1.,0.},{0.,1.},{-1.,0.},{0.,-1.} };

void TPZShapeQuad::ShapeCorner(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi) {
void TPZShapeQuad::ShapeCorner(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi) {

REAL x[2],dx[2],y[2],dy[2];
x[0] = (1.-pt[0])/2.;
Expand Down Expand Up @@ -64,7 +64,7 @@ namespace pzshape {
* @param phi (input) value of the (4) shape functions
* @param dphi (input) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
void TPZShapeQuad::ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapeQuad::ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
int is;
for(is=4; is<8; is++)
Expand Down Expand Up @@ -98,7 +98,7 @@ namespace pzshape {
* @param phi (input) value of the (4) shape functions
* @param dphi (input) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
void TPZShapeQuad::ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapeQuad::ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
int is;
for(is=4; is<8; is++)
Expand Down
6 changes: 3 additions & 3 deletions Shape/pzshapequad.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,23 @@ namespace pzshape{
* @param phi (output) value of the (4) shape functions
* @param dphi (output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeCorner(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeCorner(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Computes the generating shape functions for a quadrilateral element
* @param pt (input) point where the shape function is computed
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Computes the generating shape functions for a quadrilateral element
* @param pt (input) point where the shape function is computed
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Compute the internal functions of the quadrilateral shape function at a point
Expand Down
8 changes: 4 additions & 4 deletions Shape/pzshapetetra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace pzshape {
{1.,1.,2.} , {-1.,0.,1. } , {0.,-1.,1.}//{1.,1.,2.} , {-1.,0.,1. } , {0.,-1.,1.}
};

void TPZShapeTetra::ShapeCorner(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi) {
void TPZShapeTetra::ShapeCorner(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi) {
phi(0,0) = 1-pt[0]-pt[1]-pt[2];
phi(1,0) = pt[0];
phi(2,0) = pt[1];
Expand All @@ -72,7 +72,7 @@ namespace pzshape {


//troco para ShapeCorner
void TPZShapeTetra::CornerShape(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi) {
void TPZShapeTetra::CornerShape(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi) {
phi(0,0) = 1-pt[0]-pt[1]-pt[2];
phi(1,0) = pt[0];
phi(2,0) = pt[1];
Expand All @@ -98,7 +98,7 @@ namespace pzshape {
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
void TPZShapeTetra::ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapeTetra::ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
int is;
// 6 ribs
Expand Down Expand Up @@ -163,7 +163,7 @@ namespace pzshape {
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
void TPZShapeTetra::ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
void TPZShapeTetra::ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi)
{
REAL mult[] = {1.,1.,1.,1.,4.,4.,4.,4.,4.,4.,27.,27.,27.,27.,54.};

Expand Down
8 changes: 4 additions & 4 deletions Shape/pzshapetetra.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ namespace pzshape {
* @param phi (output) value of the (4) shape functions
* @param dphi (output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void CornerShape(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void CornerShape(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Computes the generating shape functions for a quadrilateral element
* @param pt (input) point where the shape function is computed
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);

/**
* @brief Computes the generating shape functions for a quadrilateral element
* @param pt (input) point where the shape function is computed
* @param phi (input/output) value of the (4) shape functions
* @param dphi (input/output) value of the derivatives of the (4) shape functions holding the derivatives in a column
*/
static void ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeGenerating(const TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);


/**
Expand Down Expand Up @@ -186,7 +186,7 @@ namespace pzshape {
static int NShapeF(const TPZVec<int> &order);

static void ShapeInternal(int side, TPZVec<REAL> &x, int order, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeCorner(TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
static void ShapeCorner(const TPZVec<REAL> &pt, TPZFMatrix<REAL> &phi, TPZFMatrix<REAL> &dphi);
};

};
Expand Down
Loading

0 comments on commit 8345af6

Please sign in to comment.