Save utfile and nthreads to savefile

This commit is contained in:
2023-06-14 14:28:03 -04:00
parent 6066309fa3
commit 870196ec07
3 changed files with 14 additions and 3 deletions

View File

@@ -160,7 +160,8 @@ int enstrophy(
// for interrupt recovery
char* cmd_string,
char* params_string,
char* savefile_string
char* savefile_string,
char* utfile_string
){
_Complex double* u;
_Complex double* tmp1;
@@ -293,6 +294,16 @@ int enstrophy(
}
fprintf(savefile,"\"");
}
// utfile
if(utfile!=NULL){
fprintf(savefile," -u \"%s\"", utfile_string);
}
// threads
if(nthreads!=1){
fprintf(savefile," -t %d", nthreads);
}
fprintf(savefile," enstrophy\n");
// save final u to savefile