This commit is contained in:
2023-06-14 14:19:27 -04:00
parent d15f58b61e
commit 7ab59aca48
4 changed files with 52 additions and 8 deletions

View File

@@ -126,6 +126,7 @@ int uk(
}
}
// TODO: update handling of savefile
// save final entry to savefile
write_vec_bin(u, K1, K2, savefile);
@@ -155,6 +156,7 @@ int enstrophy(
double starting_time,
unsigned int nthreads,
FILE* savefile,
FILE* utfile,
// for interrupt recovery
char* cmd_string,
char* params_string,
@@ -307,6 +309,11 @@ int enstrophy(
}
}
// save final u to utfile in txt format
if(utfile!=NULL){
write_vec(u, K1, K2, utfile);
}
ns_free_tmps(u, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, fft1, fft2, ifft, algorithm);
return(0);
}
@@ -378,6 +385,7 @@ int quiet(
step=next_step;
}
// TODO: update handling of savefile
// save final entry to savefile
write_vec(u, K1, K2, savefile);