~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to src/MANYBODY/pair_tersoff_zbl.cpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2013-11-20 22:41:36 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20131120224136-tzx7leh606fqnckm
Tags: 0~20131119.git7162cf0-1
* [e65b919] Imported Upstream version 0~20131119.git7162cf0
* [f7bddd4] Fix some problems, introduced by upstream recently.
* [3616dfc] Use wrap-and-sort script.
* [7e92030] Ignore quilt dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
  memory->sfree(params);
70
70
  params = NULL;
71
 
  nparams = 0;
 
71
  nparams = maxparam = 0;
72
72
 
73
73
  // open file on proc 0
74
74
 
75
75
  FILE *fp;
76
76
  if (comm->me == 0) {
77
 
    fp = fopen(file,"r");
 
77
    fp = open_potential(file);
78
78
    if (fp == NULL) {
79
79
      char str[128];
80
80
      sprintf(str,"Cannot open Tersoff potential file %s",file);