From f7bb48102f784dda50ef31678f8c54e753dac844 Mon Sep 17 00:00:00 2001 From: Agilio Padua <agilio.padua@gmail.com> Date: Tue, 29 Jan 2019 18:03:12 +0100 Subject: [PATCH] Fix in extract() method of pair_thole --- src/USER-DRUDE/pair_lj_cut_thole_long.cpp | 2 +- src/USER-DRUDE/pair_thole.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/USER-DRUDE/pair_lj_cut_thole_long.cpp b/src/USER-DRUDE/pair_lj_cut_thole_long.cpp index ce5d3a92a9..f9da40dfb9 100644 --- a/src/USER-DRUDE/pair_lj_cut_thole_long.cpp +++ b/src/USER-DRUDE/pair_lj_cut_thole_long.cpp @@ -683,7 +683,7 @@ void *PairLJCutTholeLong::extract(const char *str, int &dim) { dim = 0; if (strcmp(str,"cut_coul") == 0) return (void *) &cut_coul; - dim = 6; + dim = 2; if (strcmp(str,"epsilon") == 0) return (void *) epsilon; if (strcmp(str,"sigma") == 0) return (void *) sigma; if (strcmp(str,"scale") == 0) return (void *) scale; diff --git a/src/USER-DRUDE/pair_thole.cpp b/src/USER-DRUDE/pair_thole.cpp index 6901ad1f2d..5a518d819b 100644 --- a/src/USER-DRUDE/pair_thole.cpp +++ b/src/USER-DRUDE/pair_thole.cpp @@ -414,7 +414,7 @@ double PairThole::single(int i, int j, int itype, int jtype, void *PairThole::extract(const char *str, int &dim) { - dim = 4; + dim = 2; if (strcmp(str,"scale") == 0) return (void *) scale; if (strcmp(str,"polar") == 0) return (void *) polar; if (strcmp(str,"thole") == 0) return (void *) thole; -- GitLab