Skip to content

Commit

Permalink
close file when finished
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangChunHe committed Dec 26, 2018
1 parent 54bf742 commit 1fd995c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions read_poscar.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
end
k = k +1;
end
fclose(fid);
temp_str = str2num(temp_str{1});
if isempty(select_flag); headline = 8;else headline = 9;end

Expand Down

0 comments on commit 1fd995c

Please sign in to comment.