Skip to content

Commit d56c5ad

Browse files
committed
change ParMETIS weight types to allow negative numbers
1 parent e743738 commit d56c5ad

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Common/include/CConfig.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -997,8 +997,8 @@ class CConfig {
997997
unsigned long Nonphys_Points, /*!< \brief Current number of non-physical points in the solution. */
998998
Nonphys_Reconstr; /*!< \brief Current number of non-physical reconstructions for 2nd-order upwinding. */
999999
su2double ParMETIS_tolerance; /*!< \brief Load balancing tolerance for ParMETIS. */
1000-
unsigned short ParMETIS_pointWgt; /*!< \brief Load balancing weight given to points. */
1001-
unsigned short ParMETIS_edgeWgt; /*!< \brief Load balancing weight given to edges. */
1000+
long ParMETIS_pointWgt; /*!< \brief Load balancing weight given to points. */
1001+
long ParMETIS_edgeWgt; /*!< \brief Load balancing weight given to edges. */
10021002
unsigned short DirectDiff; /*!< \brief Direct Differentation mode. */
10031003
bool DiscreteAdjoint, /*!< \brief AD-based discrete adjoint mode. */
10041004
FullTape; /*!< \brief Full tape mode for coupled discrete adjoints. */
@@ -9394,12 +9394,12 @@ class CConfig {
93949394
/*!
93959395
* \brief Get the ParMETIS load balancing weight for points.
93969396
*/
9397-
unsigned short GetParMETIS_PointWeight() const { return ParMETIS_pointWgt; }
9397+
long GetParMETIS_PointWeight() const { return ParMETIS_pointWgt; }
93989398

93999399
/*!
94009400
* \brief Get the ParMETIS load balancing weight for edges
94019401
*/
9402-
unsigned short GetParMETIS_EdgeWeight() const { return ParMETIS_edgeWgt; }
9402+
long GetParMETIS_EdgeWeight() const { return ParMETIS_edgeWgt; }
94039403

94049404
/*!
94059405
* \brief Find the marker index (if any) that is part of a given interface pair.

Common/src/CConfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,10 +2672,10 @@ void CConfig::SetConfig_Options() {
26722672
addDoubleOption("PARMETIS_TOLERANCE", ParMETIS_tolerance, 0.05);
26732673

26742674
/* DESCRIPTION: ParMETIS load balancing weight for points */
2675-
addUnsignedShortOption("PARMETIS_POINT_WEIGHT", ParMETIS_pointWgt, 1);
2675+
addLongOption("PARMETIS_POINT_WEIGHT", ParMETIS_pointWgt, 1);
26762676

26772677
/* DESCRIPTION: ParMETIS load balancing weight for edges (equiv. to neighbors) */
2678-
addUnsignedShortOption("PARMETIS_EDGE_WEIGHT", ParMETIS_edgeWgt, 0);
2678+
addLongOption("PARMETIS_EDGE_WEIGHT", ParMETIS_edgeWgt, 0);
26792679

26802680
/*--- options that are used in the Hybrid RANS/LES Simulations ---*/
26812681
/*!\par CONFIG_CATEGORY:Hybrid_RANSLES Options\ingroup Config*/

0 commit comments

Comments
 (0)