Fix typo in dihedral_charmm.cpp

This commit is contained in:
Evangelos Voyiatzis
2025-04-07 21:08:35 +02:00
committed by GitHub
parent 7b0c5f3e04
commit 809d5b5b93

View File

@ -440,7 +440,7 @@ void DihedralCharmm::write_data(FILE *fp)
void *DihedralCharmm::extract(const char *str, int &dim)
{
dim = 1;
if (strcmp(str, "k") == 0) return (void *) k0;
if (strcmp(str, "k") == 0) return (void *) k;
if (strcmp(str, "n") == 0) return (void *) multiplicity;
if (strcmp(str, "d") == 0) return (void *) shift;
return nullptr;