Skip to content

Commit

Permalink
Merge branch 'develop' into feature_output_comp
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristopher-Morales authored Jan 25, 2025
2 parents a280299 + b1c3a15 commit 17a2ab4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@
[submodule "subprojects/MLPCpp"]
path = subprojects/MLPCpp
url = https://github.com/EvertBunschoten/MLPCpp.git
[submodule "externals/FADO"]
path = externals/FADO
url = https://github.com/pcarruscag/FADO.git
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Thomas D. Economon
Tim Albring
TobiKattmann
Trent Lukaczyk
Vikram Bharadwaj
Vinzenz Götz
VivaanKhatri
Wally Maier
Expand Down
10 changes: 6 additions & 4 deletions SU2_CFD/src/output/COutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ void COutput::SetHistoryOutput(CGeometry *geometry,
unsigned long TimeIter,
unsigned long OuterIter,
unsigned long InnerIter) {

curTimeIter = TimeIter;
curTimeIter = TimeIter;
curAbsTimeIter = max(TimeIter, config->GetStartWindowIteration()) - config->GetStartWindowIteration();
curOuterIter = OuterIter;
curInnerIter = InnerIter;
Expand Down Expand Up @@ -273,7 +272,7 @@ void COutput::SetHistoryOutput(CGeometry ****geometry, CSolver *****solver, CCon

void COutput::SetMultizoneHistoryOutput(COutput **output, CConfig **config, CConfig *driver_config, unsigned long TimeIter, unsigned long OuterIter){

curTimeIter = TimeIter;
curTimeIter = TimeIter;
curAbsTimeIter = max(TimeIter, driver_config->GetStartWindowIteration()) - driver_config->GetStartWindowIteration();
curOuterIter = OuterIter;

Expand Down Expand Up @@ -389,6 +388,9 @@ void COutput::WriteToFile(CConfig *config, CGeometry *geometry, OUTPUT_TYPE form
/*--- File writer that will later be used to write the file to disk. Created below in the "switch" ---*/
CFileWriter *fileWriter = nullptr;

/*--- Set current time iter even if history file is not written ---*/
curTimeIter = config->GetTimeIter();

/*--- If it is still present, strip the extension (suffix) from the filename ---*/
const auto lastindex = fileName.find_last_of('.');
fileName = fileName.substr(0, lastindex);
Expand Down Expand Up @@ -476,7 +478,7 @@ void COutput::WriteToFile(CConfig *config, CGeometry *geometry, OUTPUT_TYPE form
extension = CSU2MeshFileWriter::fileExt;

if (fileName.empty())
fileName = volumeFilename;
fileName = config->GetFilename(volumeFilename, "", curTimeIter);

if (!config->GetWrt_Volume_Overwrite())
filename_iter = config->GetFilename_Iter(fileName, curInnerIter, curOuterIter);
Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/src/solvers/CTurbSASolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ void CTurbSASolver::BC_HeatFlux_Wall(CGeometry *geometry, CSolver **solver_conta
Res_Wall = coeff*RoughWallBC*Area;
LinSysRes.SubtractBlock(iPoint, &Res_Wall);

su2double Jacobian_i = (laminar_viscosity*Area)/(0.03*Roughness_Height*sigma);
su2double Jacobian_i = (laminar_viscosity /density *Area)/(0.03*Roughness_Height*sigma);
Jacobian_i += 2.0*RoughWallBC*Area/sigma;
if (implicit) Jacobian.AddVal2Diag(iPoint, -Jacobian_i);
}
Expand Down
2 changes: 2 additions & 0 deletions SU2_PY/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ install_data(['FSI_tools/__init__.py',
install_data(['SU2_Nastran/__init__.py',
'SU2_Nastran/pysu2_nastran.py'],
install_dir: join_paths(get_option('bindir'), 'SU2_Nastran'))

install_subdir(['../externals/FADO'], install_dir: get_option('bindir'))
1 change: 1 addition & 0 deletions externals/FADO
Submodule FADO added at de3186

0 comments on commit 17a2ab4

Please sign in to comment.