4444#include < assert.h>
4545
4646#include " ./option_structure.hpp"
47- #include " ./datatype_structure.hpp"
4847
4948#ifdef HAVE_CGNS
5049#include " cgnslib.h"
@@ -1282,7 +1281,7 @@ class CConfig {
12821281 * \brief Constructor of the class which takes an istream buffer containing the config options.
12831282 */
12841283 CConfig (istream &case_buffer, unsigned short val_software, bool verb_high);
1285-
1284+
12861285 /* !
12871286 * \brief Constructor of the class which reads the input file and uses default options from another config.
12881287 */
@@ -1302,7 +1301,7 @@ class CConfig {
13021301 * \brief Destructor of the class.
13031302 */
13041303 ~CConfig (void );
1305-
1304+
13061305 /* !
13071306 * \brief Initialize common fields of the config structure.
13081307 */
@@ -1322,13 +1321,13 @@ class CConfig {
13221321 * \brief Print the header to screen
13231322 * \param val_software - Kind of software component
13241323 */
1325- void SetHeader (unsigned short val_software);
1324+ void SetHeader (unsigned short val_software) const ;
13261325
13271326 /* !
13281327 * \brief Get the MPI communicator of SU2.
13291328 * \return MPI communicator of SU2.
13301329 */
1331- SU2_MPI::Comm GetMPICommunicator ();
1330+ SU2_MPI::Comm GetMPICommunicator () const ;
13321331
13331332 /* !
13341333 * \brief Set the MPI communicator for SU2.
@@ -3937,7 +3936,7 @@ class CConfig {
39373936 * \brief Get flag for whether a second gradient calculation is required for upwind reconstruction alone.
39383937 * \return <code>TRUE</code> means that a second gradient will be calculated for upwind reconstruction.
39393938 */
3940- bool GetReconstructionGradientRequired (void ) { return ReconstructionGradientRequired; }
3939+ bool GetReconstructionGradientRequired (void ) const { return ReconstructionGradientRequired; }
39413940
39423941 /* !
39433942 * \brief Get flag for whether a least-squares gradient method is being applied.
@@ -5403,13 +5402,13 @@ class CConfig {
54035402 * \brief Append the zone index to the restart or the solution files.
54045403 * \return Name of the restart file for the flow variables.
54055404 */
5406- string GetMultizone_FileName (string val_filename, int val_iZone, string ext);
5405+ string GetMultizone_FileName (string val_filename, int val_iZone, string ext) const ;
54075406
54085407 /* !
54095408 * \brief Append the zone index to the restart or the solution files.
54105409 * \return Name of the restart file for the flow variables.
54115410 */
5412- string GetMultizone_HistoryFileName (string val_filename, int val_iZone, string ext);
5411+ string GetMultizone_HistoryFileName (string val_filename, int val_iZone, string ext) const ;
54135412
54145413 /* !
54155414 * \brief Append the instance index to the restart or the solution files.
@@ -5483,7 +5482,7 @@ class CConfig {
54835482 * \param[in] val_iter - Unsteady iteration number or time instance.
54845483 * \return Name of the file with the iteration number for an unsteady solution file.
54855484 */
5486- string GetUnsteady_FileName (string val_filename, int val_iter, string ext);
5485+ string GetUnsteady_FileName (string val_filename, int val_iter, string ext) const ;
54875486
54885487 /* !
54895488 * \brief Append the input filename string with the appropriate objective function extension.
@@ -5688,7 +5687,7 @@ class CConfig {
56885687 * \param[in] val - new value of the origin
56895688 * \return The mesh motion origin.
56905689 */
5691- void SetMotion_Origin (su2double* val) { for (int iDim = 0 ; iDim < 3 ; iDim++) Motion_Origin[iDim] = val[iDim]; }
5690+ void SetMotion_Origin (const su2double* val) { for (int iDim = 0 ; iDim < 3 ; iDim++) Motion_Origin[iDim] = val[iDim]; }
56925691
56935692 /* !
56945693 * \brief Get the mesh motion origin.
@@ -5703,7 +5702,7 @@ class CConfig {
57035702 * \param[in] val - new value of the origin
57045703 * \param[in] iMarkerMoving - Index of the moving marker (as specified in Marker_Moving)
57055704 */
5706- void SetMarkerMotion_Origin (su2double* val, unsigned short iMarkerMoving) {
5705+ void SetMarkerMotion_Origin (const su2double* val, unsigned short iMarkerMoving) {
57075706 for (int iDim = 0 ; iDim < 3 ; iDim++) MarkerMotion_Origin[3 *iMarkerMoving + iDim] = val[iDim];
57085707 }
57095708
@@ -8009,8 +8008,8 @@ class CConfig {
80098008 /* !
80108009 * \brief Set the config file parsing.
80118010 */
8012- void SetConfig_Parsing (istream &config_buffer);
8013-
8011+ void SetConfig_Parsing (istream &config_buffer);
8012+
80148013 /* !
80158014 * \brief Set the config file parsing.
80168015 */
@@ -8338,27 +8337,7 @@ class CConfig {
83388337 * \brief Get the current number of non-physical reconstructions for 2nd-order upwinding.
83398338 * \return Current number of non-physical reconstructions for 2nd-order upwinding.
83408339 */
8341- unsigned long GetNonphysical_Reconstr (void ) { return Nonphys_Reconstr; }
8342-
8343- /* !
8344- * \brief Given arrays x[1..n] and y[1..n] containing a tabulated function, i.e., yi = f(xi), with
8345- x1 < x2 < . . . < xN , and given values yp1 and ypn for the first derivative of the interpolating
8346- function at points 1 and n, respectively, this routine returns an array y2[1..n] that contains
8347- the second derivatives of the interpolating function at the tabulated points xi. If yp1 and/or
8348- ypn are equal to 1 × 1030 or larger, the routine is signaled to set the corresponding boundary
8349- condition for a natural spline, with zero second derivative on that boundary.
8350- Numerical Recipes: The Art of Scientific Computing, Third Edition in C++.
8351- */
8352- void SetSpline (vector<su2double> &x, vector<su2double> &y, unsigned long n, su2double yp1, su2double ypn, vector<su2double> &y2);
8353-
8354- /* !
8355- * \brief Given the arrays xa[1..n] and ya[1..n], which tabulate a function (with the xai’s in order),
8356- and given the array y2a[1..n], which is the output from spline above, and given a value of
8357- x, this routine returns a cubic-spline interpolated value y.
8358- Numerical Recipes: The Art of Scientific Computing, Third Edition in C++.
8359- * \return The interpolated value of for x.
8360- */
8361- su2double GetSpline (vector<su2double> &xa, vector<su2double> &ya, vector<su2double> &y2a, unsigned long n, su2double x);
8340+ unsigned long GetNonphysical_Reconstr (void ) const { return Nonphys_Reconstr; }
83628341
83638342 /* !
83648343 * \brief Start the timer for profiling subroutines.
@@ -8401,7 +8380,7 @@ class CConfig {
84018380 *
84028381 * \brief Set freestream turbonormal for initializing solution.
84038382 */
8404- void SetFreeStreamTurboNormal (su2double* turboNormal);
8383+ void SetFreeStreamTurboNormal (const su2double* turboNormal);
84058384
84068385 /* !
84078386 *
0 commit comments