add return values analysis

milestone_5_without_improvements-logs
Oli 3 years ago
parent b5ae9abdc6
commit 466b480109

File diff suppressed because one or more lines are too long

@ -79,7 +79,7 @@ double cov_value(struct vario_mod variogram, double di, double dj, double dk, in
double* used_ram_tf = malloc(sizeof(double)); double* used_ram_tf = malloc(sizeof(double));
getVirtualMemUsed(used_ram_tf); getVirtualMemUsed(used_ram_tf);
log_info("RESULT = success, hx = %f, hy = %f, hz = %f, h = %f, cov = %f, ELAPSED = %f seconds, DIF USED VIRTUAL MEM = %5.1f MB", hx, hy, hz, h, cov, time_taken, *used_ram_tf - *used_ram_t0); log_info("RESULT = success, cov = %f, hx = %f, hy = %f, hz = %f, h = %f , ELAPSED = %f seconds, DIF USED VIRTUAL MEM = %5.1f MB", cov, hx, hy, hz, h, time_taken, *used_ram_tf - *used_ram_t0);
free(used_ram_t0); free(used_ram_t0);
free(used_ram_tf); free(used_ram_tf);

@ -83,7 +83,7 @@ double ran2(long* idum, long* idum2, long* iy, long iv[NTAB], int cores) {
getVirtualMemUsed(used_ram_tf); getVirtualMemUsed(used_ram_tf);
if ((temp = AM * (*iy)) > RNMX) { if ((temp = AM * (*iy)) > RNMX) {
log_info("RESULT = success, ELAPSED = %f, DIF USED VIRTUAL MEM = %5.1f MB", time_taken, *used_ram_tf - *used_ram_t0); log_info("RESULT = success, RNMX = %f, ELAPSED = %f, DIF USED VIRTUAL MEM = %5.1f MB", RNMX, time_taken, *used_ram_tf - *used_ram_t0);
return (RNMX); return (RNMX);
} }
else { else {

@ -1,2 +1,2 @@
python3 setup.py install --user python3 setup.py install --user
ENV=analysis python3 test.py $1 2>&1 | split -l 5000000 - log_$1- ENV=true python3 test.py $1 2>&1 | split -l 5000000 - log_$1-
Loading…
Cancel
Save