Files
asco/asco_unbuffered.patch

14 lines
379 B
Diff

Index: ASCO-0.4.9/de36.c
===================================================================
--- ASCO-0.4.9.orig/de36.c
+++ ASCO-0.4.9/de36.c
@@ -477,6 +477,8 @@ int DE(int argc, char *argv[])
char laux[LONGSTRINGSIZE];
int ii;
+ setvbuf(stdout, NULL, _IONBF, 0); /* set unbuffered */
+
#ifdef MPI
double tmp_y[MAXPOP][MAXDIM], trial_cost_y[MAXPOP];
int k, m, count;