Skip to content

Commit

Permalink
fixed a bug in the initialize_sw_1985 function
Browse files Browse the repository at this point in the history
  • Loading branch information
brucefan1983 authored Aug 12, 2017
1 parent 8a0e685 commit 0ac0cb6
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/potential.cu
Original file line number Diff line number Diff line change
Expand Up @@ -221,18 +221,7 @@ static void initialize_sw_1985(FILE *fid, Force_Model *force_model)
{
printf("INPUT: use Stillinger-Weber potential.\n");
int count;
int number_of_types = 0;
count = fscanf(fid, "%d", &number_of_types);
if (count != 1)
{
print_error("reading error for potential.in.\n");
exit(1);
}
if (number_of_types != 1)
{
print_error("number of atom types should be 1 for SW.\n");
exit(1);
}

#ifdef USE_DP
count = fscanf
(
Expand Down

1 comment on commit 0ac0cb6

@brucefan1983
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Xiaolong Yang from Xi'an Jiaotong University for reporting this bug to me!

Please sign in to comment.