commit ecc400c9a893d1504af64e3568754c3c9a33fdb5
parent dc4087599e0405be270ac58ee63130ff86db4e46
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Sun, 21 Apr 2024 09:09:22 +0200
Fix of probe list resolution when MPI is disabled
When the library is compiled without MPI, the functions that resolved a
probe lists assumed that the process executing them was not a master
process. They therefore did not return an estimator.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sdis_solve_probe_Xd.h b/src/sdis_solve_probe_Xd.h
@@ -504,7 +504,7 @@ XD(solve_probe_list)
/* Miscellaneous */
int32_t* progress = NULL; /* Per process progress bar */
int pcent_progress = 1; /* Percentage requiring progress update */
- int is_master_process = 0;
+ int is_master_process = 1;
int64_t i = 0;
ATOMIC nsolved_probes = 0;
ATOMIC res = RES_OK;
diff --git a/src/sdis_solve_probe_boundary_Xd.h b/src/sdis_solve_probe_boundary_Xd.h
@@ -546,7 +546,7 @@ XD(solve_probe_boundary_list)
/* Miscellaneous */
int32_t* progress = NULL; /* Per process progress bar */
- int is_master_process = 0;
+ int is_master_process = 1;
int pcent_progress = 1; /* Percentage requiring progress update */
int64_t i = 0;
ATOMIC nsolved_probes = 0;