Skip to content

Commit 9bf1ba3

Browse files
committed
fix AD build, change defaults, update config_template
1 parent d56c5ad commit 9bf1ba3

3 files changed

Lines changed: 20 additions & 4 deletions

File tree

Common/include/CConfig.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9389,7 +9389,7 @@ class CConfig {
93899389
/*!
93909390
* \brief Get the ParMETIS load balancing tolerance.
93919391
*/
9392-
su2double GetParMETIS_Tolerance() const { return ParMETIS_tolerance; }
9392+
passivedouble GetParMETIS_Tolerance() const { return SU2_TYPE::GetValue(ParMETIS_tolerance); }
93939393

93949394
/*!
93959395
* \brief Get the ParMETIS load balancing weight for points.

Common/src/CConfig.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2669,13 +2669,13 @@ void CConfig::SetConfig_Options() {
26692669
addPythonOption("NZONES");
26702670

26712671
/* DESCRIPTION: ParMETIS load balancing tolerance */
2672-
addDoubleOption("PARMETIS_TOLERANCE", ParMETIS_tolerance, 0.05);
2672+
addDoubleOption("PARMETIS_TOLERANCE", ParMETIS_tolerance, 0.02);
26732673

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

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

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

config_template.cfg

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,22 @@ EDGE_COLORING_GROUP_SIZE= 512
13691369
% The default (0) means "same number of threads as for all else".
13701370
LINEAR_SOLVER_PREC_THREADS= 0
13711371
%
1372+
% ----------------------- PARTITIONING OPTIONS (ParMETIS) ------------------------ %
1373+
%
1374+
% Load balancing tolerance, lower values will make ParMETIS work harder to evenly
1375+
% distribute the work-estimate metric across all MPI ranks, at the expense of more
1376+
% edge cuts (i.e. increased communication cost).
1377+
PARMETIS_TOLERANCE= 0.02
1378+
%
1379+
% The work-estimate metric is a weighted function of the work-per-edge (e.g. spatial
1380+
% discretization, linear system solution) and of the work-per-point (e.g. source terms,
1381+
% temporal discretization) the former usually accounts for >90% of the total.
1382+
% These weights are INTEGERS (for compatibility with ParMETIS) thus not [0, 1].
1383+
% To balance memory usage (instead of computation) the point weight needs to be
1384+
% increased (especially for explicit time integration methods).
1385+
PARMETIS_EDGE_WEIGHT= 1
1386+
PARMETIS_POINT_WEIGHT= 0
1387+
%
13721388
% ------------------------- SCREEN/HISTORY VOLUME OUTPUT --------------------------%
13731389
%
13741390
% Screen output fields (use 'SU2_CFD -d <config_file>' to view list of available fields)

0 commit comments

Comments
 (0)