Open shaswat-m opened 2 years ago
Turns out it is just the change in the class that holds bounds and numeric. Moved from atom/force respectively to utils.
Here are the to-dos (changes) to both the cpp files:
#include "neighbor.h"
force->numeric(FLERR,arg[*])
to utils::numeric(FLERR,arg[*],false,lmp)
force->bounds(FLERR,arg[*],atom->ntypes,ilo,ihi)
to utils::bounds(FLERR,arg[*],1,atom->ntypes,ilo,ihi,error)
nwords = atom->count_words(line)
to nwords = utils::trim_and_count_words(line)
Thanks @shaswat-m and apologies for the deprecated repo. I've also noticed that a bond style is better for using the Taylor expansion potential, it's more stable because atoms may move outside the cutoff radius.
Do you have the bond potential type implementation for this? That would be really helpful!
Also, I see that the IILIST and IJLIST encodes the global hessian matrix which might hamper the parallelization, so I see the merit in implementing this as a bond style.
@shaswat-m i don't have the bond style at the moment, I'll upload if I find it or make it again. But the bond style is really the best way to implement.
@rohskopf I'm looking to work on a 4-body potential, effectively like a tetrahedral Finite Element. I'll use the dihedral style to develop something similar to what you're suggesting in the bond style.
I get the following error on moving the .cpp and .h files into my src and doing a
make mpi