Commit 5de30a15 authored by Johan Richard's avatar Johan Richard
Browse files

Solved issue when reading cline/nplan in parameter file

parent 42cc33d7
......@@ -39,6 +39,11 @@ void r_cline(FILE *IN, FILE *OUT)
for ( i = 0 ; i < CL.nplan ; i++ )
{
pch = strtok(NULL, " ");
if(pch==NULL)
{
fprintf(stderr, "FATAL ERROR: wrong number of critical line planes in cline\n");
exit(-1);
}
sscanf(pch, "%lf", &CL.cz[i]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment