Fix ruby interface
@@ -92,7 +92,7 @@ VALUE method_find_primitive(VALUE self,
VALUE r_symprec,
VALUE r_angle_symprec)
{
- int i, j, k, num_atom, num_prim_atom;
+ int i, j, num_atom, num_prim_atom;
double symprec, lattice[3][3];
VALUE array, vector, lat_ary, pos_ary, typ_ary;
@@ -318,7 +318,7 @@ VALUE method_get_symmetry(VALUE self,
}
}
- num_sym = spgat_get_symmetry_numerical(rotations,
+ num_sym = spgat_get_symmetry(rotations,
translations,
max_num_sym,
lattice,
@@ -350,8 +350,6 @@ VALUE method_get_symmetry(VALUE self,
rb_ary_push(array, r_rot);
rb_ary_push(array, r_trans);
- err:
-
return array;
}
