stardis-solver

Solve coupled heat transfers
git clone git://git.meso-star.fr/stardis-solver.git
Log | Files | Refs | README | LICENSE

commit 1a6ee9136a174b87a847e8c77ae8604d8469ea74
parent 6c6b2a34740d3d57373b07b7675a941ad7406e2d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 22 Jun 2018 10:47:37 +0200

Remove the ad hoc progress bar

Diffstat:
Msrc/sdis_solve.c | 10----------
1 file changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/sdis_solve.c b/src/sdis_solve.c @@ -179,7 +179,6 @@ sdis_solve_probe size_t irealisation = 0; size_t N = 0; /* #realisations that do not fail */ size_t i; - ATOMIC nreals = 0; ATOMIC res = RES_OK; if(!scn || !nrealisations || !position || time < 0 || fp_to_meter <= 0 @@ -221,7 +220,6 @@ sdis_solve_probe double w = NaN; const int ithread = omp_get_thread_num(); struct ssp_rng* rng = rngs[ithread]; - ATOMIC n; if(ATOMIC_GET(&res) != RES_OK) continue; /* An error occured */ @@ -242,15 +240,7 @@ sdis_solve_probe sqr_weight += w*w; ++N; } - - if((n = ATOMIC_INCR(&nreals)) % 10 == 0) { - #pragma omp critical - fprintf(stdout, "%c[2K\rProgress: %lu of %lu", - 27, (unsigned long)n, (unsigned long)nrealisations); - fflush(stdout); - } } - printf("%c[2K\r", 27); estimator->nrealisations = N; estimator->nfailures = nrealisations - N;