From 92b7fc64e1590a7d9ffe3546af9574fbb64d826c Mon Sep 17 00:00:00 2001 From: pscrozi Date: Fri, 27 Apr 2007 16:49:36 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@539 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- tools/restart2data.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tools/restart2data.cpp b/tools/restart2data.cpp index 6d4505f112..5b6e808d64 100644 --- a/tools/restart2data.cpp +++ b/tools/restart2data.cpp @@ -1639,6 +1639,23 @@ void Data::write(FILE *fp) } if (pair_style) { + if ((strcmp(pair_style,"none") != 0) && + (strcmp(pair_style,"eam") != 0) && + (strcmp(pair_style,"eam/opt") != 0) && + (strcmp(pair_style,"eam/alloy") != 0) && + (strcmp(pair_style,"eam/alloy/opt") != 0) && + (strcmp(pair_style,"eam/fs") != 0) && + (strcmp(pair_style,"eam/fs/opt") != 0) && + (strcmp(pair_style,"meam") != 0) && + (strcmp(pair_style,"gran/history") != 0) && + (strcmp(pair_style,"gran/no_history") != 0) && + (strcmp(pair_style,"gran/hertzian") != 0) && + (strcmp(pair_style,"sw") != 0) && + (strcmp(pair_style,"table") != 0) && + (strcmp(pair_style,"tersoff") != 0) && + (strcmp(pair_style,"hybrid") != 0)) + fprintf(fp,"\nPair Coeffs\n\n"); + if ((strcmp(pair_style,"buck") == 0) || (strcmp(pair_style,"buck/coul/cut") == 0) || (strcmp(pair_style,"buck/coul/long") == 0)) {