@@ -63,7 +63,7 @@ void CDriver::PythonInterface_Preprocessing(CConfig **config, CGeometry ****geom
6363/* Functions related to the global performance indices (Lift, Drag, ecc..) */
6464// ///////////////////////////////////////////////////////////////////////////
6565
66- passivedouble CDriver::Get_Drag () {
66+ passivedouble CDriver::Get_Drag () const {
6767
6868 unsigned short val_iZone = ZONE_0;
6969 unsigned short FinestMesh = config_container[val_iZone]->GetFinestMesh ();
@@ -78,7 +78,7 @@ passivedouble CDriver::Get_Drag() {
7878 return SU2_TYPE::GetValue (val_Drag);
7979}
8080
81- passivedouble CDriver::Get_Lift () {
81+ passivedouble CDriver::Get_Lift () const {
8282
8383 unsigned short val_iZone = ZONE_0;
8484 unsigned short FinestMesh = config_container[val_iZone]->GetFinestMesh ();
@@ -93,7 +93,7 @@ passivedouble CDriver::Get_Lift() {
9393 return SU2_TYPE::GetValue (val_Lift);
9494}
9595
96- passivedouble CDriver::Get_Mx (){
96+ passivedouble CDriver::Get_Mx () const {
9797
9898 unsigned short val_iZone = ZONE_0;
9999 unsigned short FinestMesh = config_container[val_iZone]->GetFinestMesh ();
@@ -110,7 +110,7 @@ passivedouble CDriver::Get_Mx(){
110110 return SU2_TYPE::GetValue (val_Mx);
111111}
112112
113- passivedouble CDriver::Get_My (){
113+ passivedouble CDriver::Get_My () const {
114114
115115 unsigned short val_iZone = ZONE_0;
116116 unsigned short FinestMesh = config_container[val_iZone]->GetFinestMesh ();
@@ -127,7 +127,7 @@ passivedouble CDriver::Get_My(){
127127 return SU2_TYPE::GetValue (val_My);
128128}
129129
130- passivedouble CDriver::Get_Mz () {
130+ passivedouble CDriver::Get_Mz () const {
131131
132132 unsigned short val_iZone = ZONE_0;
133133 unsigned short FinestMesh = config_container[val_iZone]->GetFinestMesh ();
@@ -144,7 +144,7 @@ passivedouble CDriver::Get_Mz() {
144144 return SU2_TYPE::GetValue (val_Mz);
145145}
146146
147- passivedouble CDriver::Get_DragCoeff () {
147+ passivedouble CDriver::Get_DragCoeff () const {
148148
149149 unsigned short val_iZone = ZONE_0;
150150 unsigned short FinestMesh = config_container[val_iZone]->GetFinestMesh ();
@@ -155,7 +155,7 @@ passivedouble CDriver::Get_DragCoeff() {
155155 return SU2_TYPE::GetValue (CDrag);
156156}
157157
158- passivedouble CDriver::Get_LiftCoeff () {
158+ passivedouble CDriver::Get_LiftCoeff () const {
159159
160160 unsigned short val_iZone = ZONE_0;
161161 unsigned short FinestMesh = config_container[val_iZone]->GetFinestMesh ();
@@ -170,13 +170,13 @@ passivedouble CDriver::Get_LiftCoeff() {
170170/* Functions to obtain information from the geometry/mesh */
171171// ///////////////////////////////////////////////////////////////////////////
172172
173- unsigned long CDriver::GetNumberVertices (unsigned short iMarker){
173+ unsigned long CDriver::GetNumberVertices (unsigned short iMarker) const {
174174
175175 return geometry_container[ZONE_0][INST_0][MESH_0]->nVertex [iMarker];
176176
177177}
178178
179- unsigned long CDriver::GetNumberHaloVertices (unsigned short iMarker){
179+ unsigned long CDriver::GetNumberHaloVertices (unsigned short iMarker) const {
180180
181181 unsigned long nHaloVertices, iVertex, iPoint;
182182
0 commit comments