Skip to content

Commit 8c6a6be

Browse files
committed
remove su2 from mesh filename
1 parent 2881ccb commit 8c6a6be

File tree

331 files changed

+367
-366
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+367
-366
lines changed

Common/src/CConfig.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,12 @@ unsigned short CConfig::GetnDim(const string& val_mesh_filename, unsigned short
721721
string text_line;
722722
ifstream mesh_file;
723723

724+
const string mesh_filename = val_mesh_filename + ".su2";
725+
724726
/*--- Open grid file ---*/
725-
mesh_file.open(val_mesh_filename.c_str(), ios::in);
727+
mesh_file.open(mesh_filename.c_str(), ios::in);
726728
if (mesh_file.fail()) {
727-
SU2_MPI::Error(string("The SU2 mesh file named ") + val_mesh_filename + string(" was not found."), CURRENT_FUNCTION);
729+
SU2_MPI::Error(string("The SU2 mesh file named ") + mesh_filename + string(" was not found."), CURRENT_FUNCTION);
728730
}
729731

730732
/*--- Read the SU2 mesh file until the dimension data is reached
@@ -750,7 +752,7 @@ unsigned short CConfig::GetnDim(const string& val_mesh_filename, unsigned short
750752

751753
/*--- Throw an error if the dimension was not found. ---*/
752754
if (nDim == -1) {
753-
SU2_MPI::Error(val_mesh_filename + string(" is not an SU2 mesh file or has the wrong format \n ('NDIME=' not found). Please check."),
755+
SU2_MPI::Error(mesh_filename + string(" is not an SU2 mesh file or has the wrong format \n ('NDIME=' not found). Please check."),
754756
CURRENT_FUNCTION);
755757
}
756758

Common/src/geometry/meshreader/CSU2ASCIIMeshReaderBase.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CSU2ASCIIMeshReaderBase::CSU2ASCIIMeshReaderBase(CConfig* val_config, unsigned s
3333
: CMeshReaderBase(val_config, val_iZone, val_nZone),
3434
myZone(val_iZone),
3535
nZones(val_nZone),
36-
meshFilename(config->GetMesh_FileName()) {}
36+
meshFilename(config->GetMesh_FileName() + ".su2") {}
3737

3838
CSU2ASCIIMeshReaderBase::~CSU2ASCIIMeshReaderBase(void) = default;
3939

@@ -42,7 +42,6 @@ bool CSU2ASCIIMeshReaderBase::ReadMetadata(const bool single_pass, CConfig* conf
4242
const bool multizone_file = config->GetMultizone_Mesh();
4343

4444
/*--- Open grid file ---*/
45-
4645
mesh_file.open(meshFilename);
4746
if (mesh_file.fail()) {
4847
SU2_MPI::Error(

TestCases/aeroelastic/aeroelastic_NACA64A010.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ CONV_CAUCHY_EPS= 1E-10
146146

147147
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
148148
%
149-
MESH_FILENAME= mesh_NACA64A010_hybrid_inv.su2
149+
MESH_FILENAME= mesh_NACA64A010_hybrid_inv
150150
MESH_FORMAT= SU2
151151
SOLUTION_FILENAME= solution_flow
152152
TABULAR_FORMAT= CSV

TestCases/axisymmetric_rans/air_nozzle/air_nozzle_restart.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ CONV_STARTITER= 10
8888

8989
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
9090
%
91-
MESH_FILENAME= nozzle.su2
91+
MESH_FILENAME= nozzle
9292
SOLUTION_FILENAME= solution_flow
9393
RESTART_FILENAME= restart_flow
9494
OUTPUT_WRT_FREQ= 1000

TestCases/cgns_writer/config.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ CONV_CAUCHY_EPS= 1E-6
8080

8181
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
8282
%
83-
MESH_FILENAME= mesh.su2
83+
MESH_FILENAME= mesh
8484
MESH_FORMAT= SU2
8585
SOLUTION_FILENAME= restart_flow
8686
TABULAR_FORMAT= CSV

TestCases/cont_adj_euler/naca0012/inv_NACA0012.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ CONV_CAUCHY_EPS= 1E-6
110110

111111
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
112112
%
113-
MESH_FILENAME= mesh_NACA0012_inv.su2
113+
MESH_FILENAME= mesh_NACA0012_inv
114114
MESH_FORMAT= SU2
115115
MESH_OUT_FILENAME= mesh_out
116116
SOLUTION_FILENAME= solution_flow

TestCases/cont_adj_euler/naca0012/inv_NACA0012_FD.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ CONV_CAUCHY_EPS= 1E-6
110110

111111
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
112112
%
113-
MESH_FILENAME= mesh_NACA0012_inv.su2
113+
MESH_FILENAME= mesh_NACA0012_inv
114114
MESH_FORMAT= SU2
115115
MESH_OUT_FILENAME= mesh_out
116116
SOLUTION_FILENAME= solution_flow

TestCases/cont_adj_euler/naca0012/inv_NACA0012_discadj.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ CONV_CAUCHY_EPS= 1E-6
8484

8585
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
8686
%
87-
MESH_FILENAME= mesh_NACA0012_inv.su2
87+
MESH_FILENAME= mesh_NACA0012_inv
8888
MESH_FORMAT= SU2
8989
MESH_OUT_FILENAME= mesh_out
9090
SOLUTION_FILENAME= solution_flow

TestCases/cont_adj_euler/oneram6/inv_ONERAM6.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ CONV_CAUCHY_EPS= 1E-10
9898

9999
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
100100
%
101-
MESH_FILENAME= mesh_ONERAM6_inv_ffd.su2
101+
MESH_FILENAME= mesh_ONERAM6_inv_ffd
102102
MESH_OUT_FILENAME= mesh_out
103103
SOLUTION_FILENAME= solution_flow
104104
SOLUTION_ADJ_FILENAME= solution_adj

TestCases/cont_adj_euler/wedge/inv_wedge_ROE.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ CONV_STARTITER= 10
9292

9393
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
9494
%
95-
MESH_FILENAME= mesh_wedge_inv_FFD.su2
95+
MESH_FILENAME= mesh_wedge_inv_FFD
9696
MESH_FORMAT= SU2
9797
MESH_OUT_FILENAME= mesh_out
9898
SOLUTION_FILENAME= solution_flow

0 commit comments

Comments
 (0)