Unverified Commit a80c80c7 authored by Richard Berger's avatar Richard Berger
Browse files

Add type information for table potentials

parent d6e062d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ void AngleTable::free_table(Table *tb)

void AngleTable::read_table(Table *tb, char *file, char *keyword)
{
  TableFileReader reader(lmp, file);
  TableFileReader reader(lmp, file, "angle");

  char * line = reader.find_section_start(keyword);

+1 −1
Original line number Diff line number Diff line
@@ -309,7 +309,7 @@ void BondTable::free_table(Table *tb)

void BondTable::read_table(Table *tb, char *file, char *keyword)
{
  TableFileReader reader(lmp, file);
  TableFileReader reader(lmp, file, "bond");
  double emin = BIGNUM;

  char * line = reader.find_section_start(keyword);
+3 −2
Original line number Diff line number Diff line
@@ -27,8 +27,9 @@
using namespace LAMMPS_NS;

TableFileReader::TableFileReader(LAMMPS *lmp,
                                         const std::string &filename) : 
  PotentialFileReader(lmp, filename, "table")
                                         const std::string &filename,
                                         const std::string &type) : 
  PotentialFileReader(lmp, filename, type + " table")
{
}

+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ namespace LAMMPS_NS
{
  class TableFileReader : public PotentialFileReader {
  public:
    TableFileReader(class LAMMPS *lmp, const std::string &filename);
    TableFileReader(class LAMMPS *lmp, const std::string &filename, const std::string & type);
    virtual ~TableFileReader();

    char * find_section_start(const std::string & keyword);