Skip to content

Commit d961785

Browse files
committed
Fix pointers to local arrays.
1 parent cbb68c0 commit d961785

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Common/include/CConfig.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,8 @@ class CConfig {
10771077
default_jst_adj_coeff[2], /*!< \brief Default artificial dissipation (adjoint) array for the COption class. */
10781078
default_ad_coeff_heat[2], /*!< \brief Default artificial dissipation (heat) array for the COption class. */
10791079
default_obj_coeff[5], /*!< \brief Default objective array for the COption class. */
1080+
default_mesh_box_length[3], /*!< \brief Default length of the RECTANGLE or BOX grid in the x,y,z directions. */
1081+
default_mesh_box_offset[3], /*!< \brief Default offset from 0.0 of the RECTANGLE or BOX grid in the x,y,z directions. */
10801082
default_geo_loc[2], /*!< \brief Default SU2_GEO section locations array for the COption class. */
10811083
default_distortion[2], /*!< \brief Default SU2_GEO section locations array for the COption class. */
10821084
default_ea_lim[3], /*!< \brief Default equivalent area limit array for the COption class. */

Common/src/CConfig.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,12 +1944,12 @@ void CConfig::SetConfig_Options() {
19441944
addShortListOption("MESH_BOX_SIZE", nMesh_Box_Size, Mesh_Box_Size);
19451945

19461946
/* DESCRIPTION: List of the length of the RECTANGLE or BOX grid in the x,y,z directions. (default: (1.0,1.0,1.0) ). */
1947-
array<su2double, 3> default_mesh_box_length = {{1.0, 1.0, 1.0}};
1948-
addDoubleArrayOption("MESH_BOX_LENGTH", 3, Mesh_Box_Length, default_mesh_box_length.data());
1947+
default_mesh_box_length[0] = 1.0; default_mesh_box_length[1] = 1.0; default_mesh_box_length[2] = 1.0;
1948+
addDoubleArrayOption("MESH_BOX_LENGTH", 3, Mesh_Box_Length, default_mesh_box_length);
19491949

19501950
/* DESCRIPTION: List of the offset from 0.0 of the RECTANGLE or BOX grid in the x,y,z directions. (default: (0.0,0.0,0.0) ). */
1951-
array<su2double, 3> default_mesh_box_offset = {{0.0, 0.0, 0.0}};
1952-
addDoubleArrayOption("MESH_BOX_OFFSET", 3, Mesh_Box_Offset, default_mesh_box_offset.data());
1951+
default_mesh_box_offset[0] = 0.0; default_mesh_box_offset[1] = 0.0; default_mesh_box_offset[2] = 0.0;
1952+
addDoubleArrayOption("MESH_BOX_OFFSET", 3, Mesh_Box_Offset, default_mesh_box_offset);
19531953

19541954
/* DESCRIPTION: Determine if the mesh file supports multizone. \n DEFAULT: true (temporarily) */
19551955
addBoolOption("MULTIZONE_MESH", Multizone_Mesh, true);

0 commit comments

Comments
 (0)