Skip to content

Commit

Permalink
Also call SurfArea comp in UdateGeometry and adapt function ti includ…
Browse files Browse the repository at this point in the history
…e 'CfgFile'

Co-authored-by: Pedro Gomes <[email protected]>
  • Loading branch information
TobiKattmann and pcarruscag committed Jan 31, 2022
1 parent 716f445 commit 288a2eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common/include/geometry/CGeometry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ class CGeometry {
* \brief Compute the surface area of all global markers.
* \param[in] config - Definition of the particular problem.
*/
void ComputeSurfaceArea(const CConfig *config);
void ComputeSurfaceAreaCfgFile(const CConfig *config);

/*!
* \brief Adapt Heatflux value for integrated heatflux.
Expand Down
4 changes: 3 additions & 1 deletion Common/src/geometry/CGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,8 @@ void CGeometry::UpdateGeometry(CGeometry **geometry_container, CConfig *config)

}

/*--- Compute the global surface areas for all markers. ---*/
geometry_container[MESH_0]->ComputeSurfaceAreaCfgFile(config);
}

void CGeometry::SetCustomBoundary(CConfig *config) {
Expand Down Expand Up @@ -2503,7 +2505,7 @@ void CGeometry::UpdateCustomBoundaryConditions(CGeometry **geometry_container, C
}
}

void CGeometry::ComputeSurfaceArea(const CConfig *config) {
void CGeometry::ComputeSurfaceAreaCfgFile(const CConfig *config) {
const auto nMarker_Global = config->GetnMarker_CfgFile();
SurfaceAreaCfgFile.resize(nMarker_Global);
vector<su2double> LocalSurfaceArea(nMarker_Global, 0.0);
Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/src/drivers/CDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ void CDriver::Geometrical_Preprocessing_FVM(CConfig *config, CGeometry **&geomet

/*--- Compute the global surface areas for all markers. ---*/

geometry[MESH_0]->ComputeSurfaceArea(config);
geometry[MESH_0]->ComputeSurfaceAreaCfgFile(config);

/*--- Check for periodicity and disable MG if necessary. ---*/

Expand Down

0 comments on commit 288a2eb

Please sign in to comment.