Ensure that init_flow is used in conjunction with init
This commit is contained in:
parent
6f0f1749a4
commit
e607a4abf9
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user