@@ -295,7 +295,7 @@ class CGeometry {
295295 * \param[in] commType - Enumerated type for the quantity to be communicated.
296296 * \param[in] val_reverse - Boolean controlling forward or reverse communication between neighbors.
297297 */
298- void PostP2PRecvs (CGeometry *geometry, CConfig *config, unsigned short commType, bool val_reverse);
298+ void PostP2PRecvs (CGeometry *geometry, CConfig *config, unsigned short commType, bool val_reverse) const ;
299299
300300 /* !
301301 * \brief Routine to launch a single non-blocking send once the buffer is loaded for a point-to-point commucation.
@@ -306,7 +306,7 @@ class CGeometry {
306306 * \param[in] val_iMessage - Index of the message in the order they are stored.
307307 * \param[in] val_reverse - Boolean controlling forward or reverse communication between neighbors.
308308 */
309- void PostP2PSends (CGeometry *geometry, CConfig *config, unsigned short commType, int val_iMessage, bool val_reverse);
309+ void PostP2PSends (CGeometry *geometry, CConfig *config, unsigned short commType, int val_iMessage, bool val_reverse) const ;
310310
311311 /* !
312312 * \brief Routine to set up persistent data structures for periodic communications.
@@ -338,7 +338,7 @@ class CGeometry {
338338 * \param[in] commType - Enumerated type for the quantity to be communicated.
339339 * \param[in] val_iMessage - Index of the message in the order they are stored.
340340 */
341- void PostPeriodicSends (CGeometry *geometry, CConfig *config, unsigned short commType, int val_iMessage);
341+ void PostPeriodicSends (CGeometry *geometry, CConfig *config, unsigned short commType, int val_iMessage) const ;
342342
343343 /* !
344344 * \brief Routine to load a geometric quantity into the data structures for MPI point-to-point communication and to
@@ -347,7 +347,7 @@ class CGeometry {
347347 * \param[in] config - Definition of the particular problem.
348348 * \param[in] commType - Enumerated type for the quantity to be communicated.
349349 */
350- void InitiateComms (CGeometry *geometry, CConfig *config, unsigned short commType);
350+ void InitiateComms (CGeometry *geometry, CConfig *config, unsigned short commType) const ;
351351
352352 /* !
353353 * \brief Routine to complete the set of non-blocking communications launched by InitiateComms() and unpacking of the data into the geometry class.
@@ -473,15 +473,15 @@ class CGeometry {
473473 * \param[in] second_point - Second point of the edge.
474474 * \return Index of the edge.
475475 */
476- long FindEdge (unsigned long first_point, unsigned long second_point);
476+ long FindEdge (unsigned long first_point, unsigned long second_point) const ;
477477
478478 /* !
479479 * \brief Get the edge index from using the nodes of the edge.
480480 * \param[in] first_point - First point of the edge.
481481 * \param[in] second_point - Second point of the edge.
482482 * \return Index of the edge.
483483 */
484- bool CheckEdge (unsigned long first_point, unsigned long second_point);
484+ bool CheckEdge (unsigned long first_point, unsigned long second_point) const ;
485485
486486 /* !
487487 * \brief Get the distance between a plane (defined by three point) and a point.
@@ -491,12 +491,12 @@ class CGeometry {
491491 * \param[in] kCoord - Coordinates of the third point that defines the plane.
492492 * \return Signed distance.
493493 */
494- su2double Point2Plane_Distance (su2double *Coord, su2double *iCoord, su2double *jCoord, su2double *kCoord );
494+ su2double Point2Plane_Distance (const su2double *Coord, const su2double *iCoord, const su2double *jCoord, const su2double *kCoord );
495495
496496 /* !
497497 * \brief Create a file for testing the geometry.
498498 */
499- void TestGeometry (void );
499+ void TestGeometry (void ) const ;
500500
501501 /* !
502502 * \brief A virtual member.
@@ -919,7 +919,7 @@ class CGeometry {
919919 su2double MinXCoord, su2double MaxXCoord,
920920 su2double MinYCoord, su2double MaxYCoord,
921921 su2double MinZCoord, su2double MaxZCoord,
922- su2double *FlowVariable,
922+ const su2double *FlowVariable,
923923 vector<su2double> &Xcoord_Airfoil, vector<su2double> &Ycoord_Airfoil,
924924 vector<su2double> &Zcoord_Airfoil, vector<su2double> &Variable_Airfoil,
925925 bool original_surface, CConfig *config);
@@ -1219,38 +1219,38 @@ class CGeometry {
12191219 * \param[in] Intersection - Definition of the particular problem.
12201220 * \return If the intersection has has been successful.
12211221 */
1222- bool SegmentIntersectsPlane (su2double *Segment_P0, su2double *Segment_P1, su2double Variable_P0, su2double Variable_P1,
1223- su2double *Plane_P0, su2double *Plane_Normal, su2double *Intersection, su2double &Variable_Interp);
1222+ bool SegmentIntersectsPlane (const su2double *Segment_P0, const su2double *Segment_P1, su2double Variable_P0, su2double Variable_P1,
1223+ const su2double *Plane_P0, const su2double *Plane_Normal, su2double *Intersection, su2double &Variable_Interp);
12241224
12251225 /* !
12261226 * \brief Ray Intersects Triangle (Moller and Trumbore algorithm)
12271227 */
1228- bool RayIntersectsTriangle (su2double orig[3 ], su2double dir[3 ],
1229- su2double vert0[3 ], su2double vert1[3 ], su2double vert2[3 ],
1228+ bool RayIntersectsTriangle (const su2double orig[3 ], const su2double dir[3 ],
1229+ const su2double vert0[3 ], const su2double vert1[3 ], const su2double vert2[3 ],
12301230 su2double *intersect);
12311231
12321232 /* !
12331233 * \brief Segment Intersects Triangle
12341234 */
1235- bool SegmentIntersectsTriangle (su2double point0[3 ], su2double point1[3 ],
1235+ bool SegmentIntersectsTriangle (su2double point0[3 ], const su2double point1[3 ],
12361236 su2double vert0[3 ], su2double vert1[3 ], su2double vert2[3 ]);
12371237
12381238 /* !
12391239 * \brief Segment Intersects Line (for 2D FFD Intersection)
12401240 */
1241- bool SegmentIntersectsLine (su2double point0[2 ], su2double point1[2 ], su2double vert0[2 ], su2double vert1[2 ]);
1241+ bool SegmentIntersectsLine (const su2double point0[2 ], const su2double point1[2 ], const su2double vert0[2 ], const su2double vert1[2 ]);
12421242
12431243 /* !
12441244 * \brief Register the coordinates of the mesh nodes.
12451245 * \param[in] config
12461246 */
1247- void RegisterCoordinates (CConfig *config);
1247+ void RegisterCoordinates (CConfig *config) const ;
12481248
12491249 /* !
12501250 * \brief Register the coordinates of the mesh nodes as output.
12511251 * \param[in] config
12521252 */
1253- void RegisterOutput_Coordinates (CConfig *config);
1253+ void RegisterOutput_Coordinates (CConfig *config) const ;
12541254
12551255 /* !
12561256 * \brief Update the multi-grid structure and the wall-distance.
0 commit comments