diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/diffraction.c | 1 | ||||
-rw-r--r-- | src/utils.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/diffraction.c b/src/diffraction.c index 32047ccc..0fd8dea9 100644 --- a/src/diffraction.c +++ b/src/diffraction.c @@ -177,6 +177,7 @@ void get_diffraction(struct image *image, UnitCell *cell) image->sfacs = malloc(image->width * image->height * sizeof(double complex)); + progress_bar(0, image->width-1); for ( x=0; x<image->width; x++ ) { for ( y=0; y<image->height; y++ ) { diff --git a/src/utils.c b/src/utils.c index d456ec70..2868ef08 100644 --- a/src/utils.c +++ b/src/utils.c @@ -174,4 +174,6 @@ void progress_bar(int val, int total) printf("\r|%s|", s); if ( val == total ) printf("\n"); + + fflush(stdout); } |