Skip to content

Commit 5c0c771

Browse files
committed
remove suffix from mesh_out
1 parent b3d4008 commit 5c0c771

File tree

226 files changed

+248
-245
lines changed

Some content is hidden

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

226 files changed

+248
-245
lines changed

Common/src/CConfig.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,8 +2130,8 @@ void CConfig::SetConfig_Options() {
21302130
addEnumOption("MESH_FORMAT", Mesh_FileFormat, Input_Map, SU2);
21312131
/* DESCRIPTION: Mesh input file */
21322132
addStringOption("MESH_FILENAME", Mesh_FileName, string("mesh.su2"));
2133-
/*!\brief MESH_OUT_FILENAME \n DESCRIPTION: Mesh output file name. Used when converting, scaling, or deforming a mesh. \n DEFAULT: mesh_out.su2 \ingroup Config*/
2134-
addStringOption("MESH_OUT_FILENAME", Mesh_Out_FileName, string("mesh_out.su2"));
2133+
/*!\brief MESH_OUT_FILENAME \n DESCRIPTION: Mesh output file name. Used when converting, scaling, or deforming a mesh. \n DEFAULT: mesh_out \ingroup Config*/
2134+
addStringOption("MESH_OUT_FILENAME", Mesh_Out_FileName, string("mesh_out"));
21352135

21362136
/* DESCRIPTION: List of the number of grid points in the RECTANGLE or BOX grid in the x,y,z directions. (default: (33,33,33) ). */
21372137
addShortListOption("MESH_BOX_SIZE", nMesh_Box_Size, Mesh_Box_Size);
@@ -7400,7 +7400,7 @@ void CConfig::SetOutput(SU2_COMPONENT val_software, unsigned short val_izone) {
74007400
}
74017401

74027402
if (val_software == SU2_COMPONENT::SU2_DEF) {
7403-
cout << "Output mesh file name: " << Mesh_Out_FileName << ". " << endl;
7403+
cout << "Output mesh file name: " << Mesh_Out_FileName << ".su2 . " << endl;
74047404
switch (GetDeform_Stiffness_Type()) {
74057405
case INVERSE_VOLUME:
74067406
cout << "Cell stiffness scaled by inverse of the cell volume." << endl;

Common/src/grid_movement/CSurfaceMovement.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4918,8 +4918,8 @@ void CSurfaceMovement::WriteFFDInfo(CSurfaceMovement** surface_movement, CGeomet
49184918
/*--- Read the name of the output file ---*/
49194919

49204920
auto str = config[ZONE_0]->GetMesh_Out_FileName();
4921-
unsigned short lastindex = str.find_last_of('.');
4922-
str = str.substr(0, lastindex) + ".su2";
4921+
//unsigned short lastindex = str.find_last_of('.');
4922+
str += ".su2";
49234923

49244924
output_file.precision(15);
49254925
output_file.open(str, ios::out | ios::app);

SU2_CFD/src/output/CMeshOutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ CMeshOutput::CMeshOutput(CConfig *config, unsigned short nDim) : COutput(config,
3838

3939
/*--- Set the volume filename --- */
4040

41-
volumeFilename = config->GetMesh_Out_FileName();
41+
volumeFilename = config->GetMesh_Out_FileName() + ".su2";
4242

4343
/*--- Set the surface filename ---*/
4444

SU2_DEF/src/drivers/CDeformationDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ void CDeformationDriver::OutputFiles() {
498498
output_container[iZone]->LoadData(geometry_container[iZone][INST_0][MESH_0], config_container[iZone], nullptr);
499499

500500
output_container[iZone]->WriteToFile(config_container[iZone], geometry_container[iZone][INST_0][MESH_0],
501-
OUTPUT_TYPE::MESH, driver_config->GetMesh_Out_FileName());
501+
OUTPUT_TYPE::MESH, driver_config->GetMesh_Out_FileName()+ ".su2");
502502

503503
/*--- Set the file names for the visualization files. ---*/
504504

SU2_PY/SU2/run/deform.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,20 @@ def deform(config, dv_new=None, dv_old=None):
9090

9191
# setup mesh name
9292
suffix = "deform"
93+
9394
mesh_name = konfig["MESH_FILENAME"]
9495
meshname_suffixed = su2io.add_suffix(mesh_name, suffix)
96+
9597
konfig["MESH_OUT_FILENAME"] = meshname_suffixed
98+
meshname_suffixed = su2io.add_suffix(mesh_name, suffix)
9699

97100
# Run Deformation
98101
SU2_DEF(konfig)
99102

100103
# update super config
101104
config.update(
102105
{
103-
"MESH_FILENAME": konfig["MESH_OUT_FILENAME"],
106+
"MESH_FILENAME": konfig["MESH_OUT_FILENAME"] + ".su2",
104107
"DV_KIND": konfig["DV_KIND"],
105108
"DV_MARKER": konfig["DV_MARKER"],
106109
"DV_PARAM": konfig["DV_PARAM"],

TestCases/cont_adj_euler/naca0012/inv_NACA0012.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ CONV_CAUCHY_EPS= 1E-6
112112
%
113113
MESH_FILENAME= mesh_NACA0012_inv.su2
114114
MESH_FORMAT= SU2
115-
MESH_OUT_FILENAME= mesh_out.su2
115+
MESH_OUT_FILENAME= mesh_out
116116
SOLUTION_FILENAME= solution_flow
117117
SOLUTION_ADJ_FILENAME= solution_adj
118118
TABULAR_FORMAT= TECPLOT

TestCases/cont_adj_euler/naca0012/inv_NACA0012_FD.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ CONV_CAUCHY_EPS= 1E-6
112112
%
113113
MESH_FILENAME= mesh_NACA0012_inv.su2
114114
MESH_FORMAT= SU2
115-
MESH_OUT_FILENAME= mesh_out.su2
115+
MESH_OUT_FILENAME= mesh_out
116116
SOLUTION_FILENAME= solution_flow
117117
SOLUTION_ADJ_FILENAME= solution_adj
118118
TABULAR_FORMAT= TECPLOT

TestCases/cont_adj_euler/naca0012/inv_NACA0012_discadj.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ CONV_CAUCHY_EPS= 1E-6
8686
%
8787
MESH_FILENAME= mesh_NACA0012_inv.su2
8888
MESH_FORMAT= SU2
89-
MESH_OUT_FILENAME= mesh_out.su2
89+
MESH_OUT_FILENAME= mesh_out
9090
SOLUTION_FILENAME= solution_flow
9191
SOLUTION_ADJ_FILENAME= solution_adj
9292
TABULAR_FORMAT= TECPLOT

TestCases/cont_adj_euler/oneram6/inv_ONERAM6.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ CONV_CAUCHY_EPS= 1E-10
9999
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
100100
%
101101
MESH_FILENAME= mesh_ONERAM6_inv_ffd.su2
102-
MESH_OUT_FILENAME= mesh_out.su2
102+
MESH_OUT_FILENAME= mesh_out
103103
SOLUTION_FILENAME= solution_flow
104104
SOLUTION_ADJ_FILENAME= solution_adj
105105
MESH_FORMAT= SU2

TestCases/cont_adj_euler/wedge/inv_wedge_ROE.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ CONV_STARTITER= 10
9494
%
9595
MESH_FILENAME= mesh_wedge_inv_FFD.su2
9696
MESH_FORMAT= SU2
97-
MESH_OUT_FILENAME= mesh_out.su2
97+
MESH_OUT_FILENAME= mesh_out
9898
SOLUTION_FILENAME= solution_flow
9999
SOLUTION_ADJ_FILENAME= solution_adj
100100
TABULAR_FORMAT= TECPLOT

0 commit comments

Comments
 (0)