diff --git a/Shape/pzshapecube.cpp b/Shape/pzshapecube.cpp index fe8dcebd2c..3f55f74b38 100644 --- a/Shape/pzshapecube.cpp +++ b/Shape/pzshapecube.cpp @@ -335,7 +335,7 @@ void TPZShapeCube::ShapeGenerating(TPZVec &pt, TPZVec &nshape, TPZFMa } } - void TPZShapeCube::ShapeOrder(TPZVec &id, TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides + void TPZShapeCube::ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides { //DebugStop(); @@ -369,7 +369,7 @@ void TPZShapeCube::ShapeGenerating(TPZVec &pt, TPZVec &nshape, TPZFMa } - void TPZShapeCube::SideShapeOrder(int side, TPZVec &id, int order, TPZGenMatrix &shapeorders) + void TPZShapeCube::SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders) { //DebugStop(); if (side<=7) diff --git a/Shape/pzshapecube.h b/Shape/pzshapecube.h index 386a9ffbb1..b7feb6586c 100644 --- a/Shape/pzshapecube.h +++ b/Shape/pzshapecube.h @@ -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 &id, TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &sides; + static void ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &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 &id, int order, TPZGenMatrix &shapeorders); + static void SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders); /** diff --git a/Shape/pzshapelinear.cpp b/Shape/pzshapelinear.cpp index 810f5be977..30ee563a1a 100644 --- a/Shape/pzshapelinear.cpp +++ b/Shape/pzshapelinear.cpp @@ -284,7 +284,7 @@ namespace pzshape { } } - void TPZShapeLinear::ShapeOrder(TPZVec &id, TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides + void TPZShapeLinear::ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides { int nshape = 2+(order[0]-1); if (shapeorders.Rows() != nshape) { @@ -298,7 +298,7 @@ namespace pzshape { } - void TPZShapeLinear::SideShapeOrder(int side, TPZVec &id, int order, TPZGenMatrix &shapeorders) + void TPZShapeLinear::SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders) { DebugStop(); } diff --git a/Shape/pzshapelinear.h b/Shape/pzshapelinear.h index d1ba046791..0b4b314a68 100644 --- a/Shape/pzshapelinear.h +++ b/Shape/pzshapelinear.h @@ -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 &id, TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &sides + static void ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &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 &id, int order, TPZGenMatrix &shapeorders); + static void SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders); /** diff --git a/Shape/pzshapepiram.cpp b/Shape/pzshapepiram.cpp index fb5ea5b756..750231aafe 100644 --- a/Shape/pzshapepiram.cpp +++ b/Shape/pzshapepiram.cpp @@ -407,7 +407,7 @@ namespace pzshape { } - void TPZShapePiram::ShapeOrder(TPZVec &id, TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides + void TPZShapePiram::ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides { //DebugStop(); int64_t nsides = TPZShapePiram::NSides; @@ -440,7 +440,7 @@ namespace pzshape { } - void TPZShapePiram::SideShapeOrder(int side, TPZVec &id, int order, TPZGenMatrix &shapeorders) + void TPZShapePiram::SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders) { //DebugStop(); if (side<=4) diff --git a/Shape/pzshapepiram.h b/Shape/pzshapepiram.h index 2f447910b6..cd2976f0c9 100644 --- a/Shape/pzshapepiram.h +++ b/Shape/pzshapepiram.h @@ -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 &id, TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &sides + static void ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &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 &id, int order, TPZGenMatrix &shapeorders); + static void SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders); /** * @brief Compute the internal functions of the pyramid shape function at a point\n diff --git a/Shape/pzshapepoint.h b/Shape/pzshapepoint.h index 931130597b..6c88a6f382 100644 --- a/Shape/pzshapepoint.h +++ b/Shape/pzshapepoint.h @@ -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 &id, TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides + static void ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides { shapeorders(0,0) = 0; } diff --git a/Shape/pzshapeprism.cpp b/Shape/pzshapeprism.cpp index 69212d0672..fd934b0800 100644 --- a/Shape/pzshapeprism.cpp +++ b/Shape/pzshapeprism.cpp @@ -447,7 +447,7 @@ namespace pzshape { } } - void TPZShapePrism::ShapeOrder(TPZVec &id, TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides + void TPZShapePrism::ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides { //DebugStop(); @@ -482,7 +482,7 @@ namespace pzshape { } - void TPZShapePrism::SideShapeOrder(int side, TPZVec &id, int order, TPZGenMatrix &shapeorders) + void TPZShapePrism::SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders) { //DebugStop(); if (side<=5) diff --git a/Shape/pzshapeprism.h b/Shape/pzshapeprism.h index 282927e185..ea1cb55286 100644 --- a/Shape/pzshapeprism.h +++ b/Shape/pzshapeprism.h @@ -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 &id, TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &sides + static void ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &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 &id, int order, TPZGenMatrix &shapeorders); + static void SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders); /** diff --git a/Shape/pzshapequad.cpp b/Shape/pzshapequad.cpp index 37ead522b2..31f652ad25 100644 --- a/Shape/pzshapequad.cpp +++ b/Shape/pzshapequad.cpp @@ -199,7 +199,7 @@ namespace pzshape { } } - void TPZShapeQuad::ShapeOrder(TPZVec &id, TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides + void TPZShapeQuad::ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides { int64_t nsides = TPZQuadrilateral::NSides; // o que eh o vetor order? @@ -247,7 +247,7 @@ namespace pzshape { } - void TPZShapeQuad::SideShapeOrder(int side, TPZVec &id, int order, TPZGenMatrix &shapeorders) + void TPZShapeQuad::SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders) { if (side<=3) diff --git a/Shape/pzshapequad.h b/Shape/pzshapequad.h index 13608cb2b0..bdb822ec2a 100644 --- a/Shape/pzshapequad.h +++ b/Shape/pzshapequad.h @@ -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 &id, TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &sides + static void ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &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 &id, int order, TPZGenMatrix &shapeorders); + static void SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders); /** * @brief Computes the corner shape functions for a quadrilateral element diff --git a/Shape/pzshapetetra.cpp b/Shape/pzshapetetra.cpp index 37bcaf7afe..f6f3583738 100644 --- a/Shape/pzshapetetra.cpp +++ b/Shape/pzshapetetra.cpp @@ -489,7 +489,7 @@ void TPZShapeTetra::ShapeGenerating(TPZVec &pt, TPZVec &nshape, TPZFM } - void TPZShapeTetra::ShapeOrder(TPZVec &id, TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides + void TPZShapeTetra::ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides { //DebugStop(); @@ -524,7 +524,7 @@ void TPZShapeTetra::ShapeGenerating(TPZVec &pt, TPZVec &nshape, TPZFM } - void TPZShapeTetra::SideShapeOrder(int side, TPZVec &id, int order, TPZGenMatrix &shapeorders) + void TPZShapeTetra::SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders) { //DebugStop(); if (side<=3) diff --git a/Shape/pzshapetetra.h b/Shape/pzshapetetra.h index f3093fea68..3af2eaee3b 100644 --- a/Shape/pzshapetetra.h +++ b/Shape/pzshapetetra.h @@ -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 &id, TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &sides + static void ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &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 &id, int order, TPZGenMatrix &shapeorders); + static void SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders); /** diff --git a/Shape/pzshapetriang.cpp b/Shape/pzshapetriang.cpp index 733ed7d7af..3f0c7897be 100644 --- a/Shape/pzshapetriang.cpp +++ b/Shape/pzshapetriang.cpp @@ -184,7 +184,7 @@ namespace pzshape { } - void TPZShapeTriang::ShapeOrder(TPZVec &id, TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides + void TPZShapeTriang::ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders)//, TPZVec &sides { int64_t nsides = TPZTriangle::NSides; // o que eh o vetor order? @@ -234,7 +234,7 @@ namespace pzshape { } - void TPZShapeTriang::SideShapeOrder(int side, TPZVec &id, int order, TPZGenMatrix &shapeorders) + void TPZShapeTriang::SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders) { if (side<=2) diff --git a/Shape/pzshapetriang.h b/Shape/pzshapetriang.h index 4f164392af..4dea8940b3 100644 --- a/Shape/pzshapetriang.h +++ b/Shape/pzshapetriang.h @@ -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 &id, TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &sides + static void ShapeOrder(const TPZVec &id, const TPZVec &order, TPZGenMatrix &shapeorders);//, TPZVec &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 &id, int order, TPZGenMatrix &shapeorders); + static void SideShapeOrder(const int side, const TPZVec &id, const int order, TPZGenMatrix &shapeorders); /**