Skip to content

Commit 288a2eb

Browse files
Also call SurfArea comp in UdateGeometry and adapt function ti include 'CfgFile'
Co-authored-by: Pedro Gomes <[email protected]>
1 parent 716f445 commit 288a2eb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Common/include/geometry/CGeometry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ class CGeometry {
915915
* \brief Compute the surface area of all global markers.
916916
* \param[in] config - Definition of the particular problem.
917917
*/
918-
void ComputeSurfaceArea(const CConfig *config);
918+
void ComputeSurfaceAreaCfgFile(const CConfig *config);
919919

920920
/*!
921921
* \brief Adapt Heatflux value for integrated heatflux.

Common/src/geometry/CGeometry.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2436,6 +2436,8 @@ void CGeometry::UpdateGeometry(CGeometry **geometry_container, CConfig *config)
24362436

24372437
}
24382438

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

24412443
void CGeometry::SetCustomBoundary(CConfig *config) {
@@ -2503,7 +2505,7 @@ void CGeometry::UpdateCustomBoundaryConditions(CGeometry **geometry_container, C
25032505
}
25042506
}
25052507

2506-
void CGeometry::ComputeSurfaceArea(const CConfig *config) {
2508+
void CGeometry::ComputeSurfaceAreaCfgFile(const CConfig *config) {
25072509
const auto nMarker_Global = config->GetnMarker_CfgFile();
25082510
SurfaceAreaCfgFile.resize(nMarker_Global);
25092511
vector<su2double> LocalSurfaceArea(nMarker_Global, 0.0);

SU2_CFD/src/drivers/CDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ void CDriver::Geometrical_Preprocessing_FVM(CConfig *config, CGeometry **&geomet
814814

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

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

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

0 commit comments

Comments
 (0)