fixed model_loaded being an int issue

This commit is contained in:
Matt Bettencourt
2023-01-04 12:16:41 +01:00
parent cd9e56469f
commit 8e1031ba3c

View File

@ -79,9 +79,9 @@ MLIAPModelPython::MLIAPModelPython(LAMMPS *lmp, char *coefffilename, bool is_chi
MLIAPModelPython::~MLIAPModelPython() MLIAPModelPython::~MLIAPModelPython()
{ {
if (model_loaded) if (model_loaded!=0)
MLIAPPY_unload_model(this); MLIAPPY_unload_model(this);
model_loaded=false; model_loaded=0;
} }
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------