Skip to content

Commit

Permalink
quartets: do not close unopened file in non-master MPI processes (fix…
Browse files Browse the repository at this point in the history
…es a segfault at the end of quartet computation)
  • Loading branch information
amkozlov authored and Alexey Kozlov committed Jan 23, 2018
1 parent af8f896 commit fab3826
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examl/quartets.c
Expand Up @@ -611,5 +611,6 @@ void computeQuartets(tree *tr, analdef *adef)
assert(0);
}

fclose(f);
if(processID == 0)
fclose(f);
}

0 comments on commit fab3826

Please sign in to comment.