add unit conversion to table pair style

This commit is contained in:
Axel Kohlmeyer
2020-06-25 04:31:34 -04:00
parent c6b16577f6
commit 2acf71c3e2
5 changed files with 140 additions and 29 deletions

View File

@ -27,17 +27,18 @@
using namespace LAMMPS_NS;
TableFileReader::TableFileReader(LAMMPS *lmp,
const std::string &filename,
const std::string &type) :
PotentialFileReader(lmp, filename, type + " table")
const std::string &filename,
const std::string &type,
const int auto_convert) :
PotentialFileReader(lmp, filename, type + " table", auto_convert)
{
}
TableFileReader::~TableFileReader() {
}
char * TableFileReader::find_section_start(const std::string & keyword) {
char * line = nullptr;
char *TableFileReader::find_section_start(const std::string & keyword) {
char *line = nullptr;
while ((line = reader->next_line())) {
ValueTokenizer values(line);
std::string word = values.next_string();