Skip to content

Instantly share code, notes, and snippets.

@anjohan
Last active November 3, 2022 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anjohan/854b7100e5d2040fb0a5db031789c95f to your computer and use it in GitHub Desktop.
Save anjohan/854b7100e5d2040fb0a5db031789c95f to your computer and use it in GitHub Desktop.
Patch for lammps/src/library.cpp for FLARE LMPOTF
diff --git a/src/library.cpp b/src/library.cpp
index cdc0a81..2d75d49 100644
--- a/src/library.cpp
+++ b/src/library.cpp
@@ -482,10 +482,10 @@ char *lammps_command(void *handle, const char *cmd)
BEGIN_CAPTURE
{
- if (lmp->update->whichflag != 0)
- lmp->error->all(FLERR,"Library error: issuing LAMMPS commands "
- "during a run is not allowed.");
- else
+ //if (lmp->update->whichflag != 0)
+ // lmp->error->all(FLERR,"Library error: issuing LAMMPS commands "
+ // "during a run is not allowed.");
+ //else
result = lmp->input->one(cmd);
}
END_CAPTURE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment