Ensure that init_flow is used in conjunction with init

This commit is contained in:
Ian Jauslin 2025-02-01 12:15:56 -05:00
parent 6f0f1749a4
commit e607a4abf9

View File

@ -686,6 +686,12 @@ int read_params(
parameters->lyapunov_reset=parameters->print_freq; parameters->lyapunov_reset=parameters->print_freq;
} }
// check that if flow_init is used, then so is init
if(parameters->init_flow_file && parameters->init!=INIT_FILE){
fprintf(stderr, "error: cannot use 'init_flow:file' if 'init' is not a binary file\n");
return(-1);
}
return(0); return(0);
} }