Initialize logfile for warnings if not set.

master
Julian M. Kunkel 2020-07-01 09:42:13 +01:00
parent 484cb420d2
commit 371335195b
2 changed files with 3 additions and 2 deletions

View File

@ -103,6 +103,7 @@ void * airoi_update_module_options(const ior_aiori_t * backend, options_all_t *
}
options_all_t * airoi_create_all_module_options(option_help * global_options){
if(! out_logfile) out_logfile = stdout;
int airoi_c = aiori_count();
options_all_t * opt = malloc(sizeof(options_all_t));
opt->module_count = airoi_c + 1;

View File

@ -60,8 +60,8 @@ int rankOffset = 0;
int verbose = VERBOSE_0; /* verbose output */
MPI_Comm testComm;
MPI_Comm mpi_comm_world;
FILE * out_logfile;
FILE * out_resultfile;
FILE * out_logfile = NULL;
FILE * out_resultfile = NULL;
enum OutputFormat_t outputFormat;
/***************************** F U N C T I O N S ******************************/