Skip to content

Commit

Permalink
constness of some parameters of TPZShapeXXX::(Side)ShapeOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
orlandini committed Jun 30, 2021
1 parent 9ba3aee commit cde74da
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions Shape/pzshapecube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void TPZShapeCube::ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMa
}
}

void TPZShapeCube::ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
void TPZShapeCube::ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
{
//DebugStop();

Expand Down Expand Up @@ -369,7 +369,7 @@ void TPZShapeCube::ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFMa
}


void TPZShapeCube::SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders)
void TPZShapeCube::SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders)
{
//DebugStop();
if (side<=7)
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapecube.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ namespace pzshape {
/**
* @brief returns the polynomial order in the natural ksi, eta of the side associated with each shapefunction
*/
static void ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides;
static void ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides;

/**
* @brief returns the polynomial order in the natural ksi, eta of the internal shapefunctions of a side
* @param sides is a vector with copy of side as much as needed, it depends on the order
*/
static void SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders);
static void SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders);


/**
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapelinear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ namespace pzshape {
}
}

void TPZShapeLinear::ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
void TPZShapeLinear::ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
{
int nshape = 2+(order[0]-1);
if (shapeorders.Rows() != nshape) {
Expand All @@ -298,7 +298,7 @@ namespace pzshape {
}


void TPZShapeLinear::SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders)
void TPZShapeLinear::SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders)
{
DebugStop();
}
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapelinear.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ namespace pzshape {
/**
* @brief returns the polynomial order in the natural ksi, eta of the side associated with each shapefunction
*/
static void ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides
static void ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides

/**
* @brief returns the polynomial order in the natural ksi, eta of the internal shapefunctions of a side
* @param sides is a vector with copy of side as much as needed, it depends on the order
*/
static void SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders);
static void SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders);


/**
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapepiram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ namespace pzshape {

}

void TPZShapePiram::ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
void TPZShapePiram::ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
{
//DebugStop();
int64_t nsides = TPZShapePiram::NSides;
Expand Down Expand Up @@ -440,7 +440,7 @@ namespace pzshape {
}


void TPZShapePiram::SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders)
void TPZShapePiram::SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders)
{
//DebugStop();
if (side<=4)
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapepiram.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ namespace pzshape {
/**
* @brief returns the polynomial order in the natural ksi, eta of the side associated with each shapefunction
*/
static void ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides
static void ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides

/**
* @brief returns the polynomial order in the natural ksi, eta of the internal shapefunctions of a side
* @param sides is a vector with copy of side as much as needed, it depends on the order
*/
static void SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders);
static void SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders);

/**
* @brief Compute the internal functions of the pyramid shape function at a point\n
Expand Down
2 changes: 1 addition & 1 deletion Shape/pzshapepoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace pzshape{
/**
* @brief returns the polynomial order in the natural ksi, eta of the side associated with each shapefunction
*/
static void ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
static void ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
{
shapeorders(0,0) = 0;
}
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapeprism.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ namespace pzshape {
}
}

void TPZShapePrism::ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
void TPZShapePrism::ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
{
//DebugStop();

Expand Down Expand Up @@ -482,7 +482,7 @@ namespace pzshape {
}


void TPZShapePrism::SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders)
void TPZShapePrism::SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders)
{
//DebugStop();
if (side<=5)
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapeprism.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ namespace pzshape {
/**
* @brief returns the polynomial order in the natural ksi, eta of the side associated with each shapefunction
*/
static void ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides
static void ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides

/**
* @brief returns the polynomial order in the natural ksi, eta of the internal shapefunctions of a side
* @param sides is a vector with copy of side as much as needed, it depends on the order
*/
static void SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders);
static void SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders);


/**
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapequad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ namespace pzshape {
}
}

void TPZShapeQuad::ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
void TPZShapeQuad::ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
{
int64_t nsides = TPZQuadrilateral::NSides;
// o que eh o vetor order?
Expand Down Expand Up @@ -247,7 +247,7 @@ namespace pzshape {
}


void TPZShapeQuad::SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders)
void TPZShapeQuad::SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders)
{

if (side<=3)
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapequad.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ namespace pzshape{
/**
* @brief returns the polynomial order in the natural ksi, eta of the side associated with each shapefunction
*/
static void ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides
static void ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides

/**
* @brief returns the polynomial order in the natural ksi, eta of the internal shapefunctions of a side
* @param sides is a vector with copy of side as much as needed, it depends on the order
*/
static void SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders);
static void SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders);

/**
* @brief Computes the corner shape functions for a quadrilateral element
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapetetra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void TPZShapeTetra::ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFM

}

void TPZShapeTetra::ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
void TPZShapeTetra::ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
{
//DebugStop();

Expand Down Expand Up @@ -524,7 +524,7 @@ void TPZShapeTetra::ShapeGenerating(TPZVec<REAL> &pt, TPZVec<int> &nshape, TPZFM
}


void TPZShapeTetra::SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders)
void TPZShapeTetra::SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders)
{
//DebugStop();
if (side<=3)
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapetetra.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ namespace pzshape {
/**
* @brief returns the polynomial order in the natural ksi, eta of the side associated with each shapefunction
*/
static void ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides
static void ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides

/**
* @brief returns the polynomial order in the natural ksi, eta of the internal shapefunctions of a side
* @param sides is a vector with copy of side as much as needed, it depends on the order
*/
static void SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders);
static void SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders);


/**
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapetriang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ namespace pzshape {

}

void TPZShapeTriang::ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
void TPZShapeTriang::ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
{
int64_t nsides = TPZTriangle::NSides;
// o que eh o vetor order?
Expand Down Expand Up @@ -234,7 +234,7 @@ namespace pzshape {
}


void TPZShapeTriang::SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders)
void TPZShapeTriang::SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders)
{

if (side<=2)
Expand Down
4 changes: 2 additions & 2 deletions Shape/pzshapetriang.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ namespace pzshape {
/**
* @brief returns the polynomial order in the natural ksi, eta of the side associated with each shapefunction
*/
static void ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides
static void ShapeOrder(const TPZVec<int64_t> &id, const TPZVec<int> &order, TPZGenMatrix<int> &shapeorders);//, TPZVec<int64_t> &sides

/**
* @brief returns the polynomial order in the natural ksi, eta of the internal shapefunctions of a side
* @param sides is a vector with copy of side as much as needed, it depends on the order
*/
static void SideShapeOrder(int side, TPZVec<int64_t> &id, int order, TPZGenMatrix<int> &shapeorders);
static void SideShapeOrder(const int side, const TPZVec<int64_t> &id, const int order, TPZGenMatrix<int> &shapeorders);


/**
Expand Down

0 comments on commit cde74da

Please sign in to comment.