88760fa648
add plugin clear command to unload all loaded plugins
2021-03-13 12:40:04 -05:00
79d438e090
add support for plugin command to LAMMPS shell
2021-03-13 12:18:07 -05:00
b4f1779b62
reformat with clang-format
2020-10-23 21:04:45 -04:00
1382559dbe
adapt behavior of lammps-shell when passing filename without -in/-i flag
...
To better handle the case of file association. We now split the path into
a directory and basename string and change the current working directory
to that directory and read the file with the basename.
This simplifies the .desktop file and makes the LAMMPS shell behave as
expected on Windows, too.
2020-10-23 20:42:24 -04:00
4795e01d54
Support being called from a graphical shell through filename association.
...
This adds a hack to the LAMMPS shell that hides the first argument from
the LAMMPS class, if it does not start with a '-' and instead tries to
open it as an input file.
2020-10-19 11:40:28 -04:00
a04c8c8a3b
fix typo
2020-10-16 22:46:20 -04:00
4d31ae7279
Beter system folder detection, add URL to "help" commmand. avoid buffer overflow.
2020-10-16 15:17:57 -04:00
f2ba37e35d
try swithing the current working directory when dropped into a Windows system folder.
2020-10-16 10:47:23 -04:00
290763a844
add a test_mode where the isatty() check is bypassed and history not read
...
this is enabled when the LAMMPS_SHELL_TESTING environment variable is set
2020-10-13 17:09:11 -04:00
114dd48779
change behavior with respect to OpenMP versus the regular LAMMPS executable
...
since the shell is not meant to be run with MPI we can use all threads by default.
2020-10-13 17:08:23 -04:00
ee98ecc7bb
document save_history command and a few more small tweaks
2020-10-11 15:47:38 -04:00
556d48f1dc
implement a "save_history" command into the LAMMPS shell
2020-10-11 15:30:56 -04:00
f6683fefea
avoid segfault on the last word of the command history
2020-10-11 14:05:37 -04:00
9950f0d259
small LAMMPS shell updates
...
- implement a "source" command (same as "include")
- synchronize documentation in manual and README
- updates to readline customizations
2020-10-11 13:53:15 -04:00
d48b0ebd7b
print OS/Compiler info when starting LAMMPS shell
2020-10-07 18:37:27 -04:00
ac6e99ae81
implement "mem" command into LAMMPS shell to print current and max memory use
2020-10-07 18:36:43 -04:00
15f9987c32
add custom commands "cd" and "pwd" to the LAMMPS shell
2020-10-06 18:39:22 -04:00
113db3ac73
fold group specific query functions into the more generic ID query functions
2020-10-05 13:41:12 -04:00
68cca6d31a
make warning about lack of exception handling more specific
2020-10-05 12:51:42 -04:00
d500ffa784
implement handler for CTRL-C on windows.
2020-10-04 16:42:29 -04:00
ffcd905bf1
complete LAMMPS shell docs interation. Warn if exceptions are missing but don't fail
2020-10-04 14:03:34 -04:00
ecb5078ba7
add signal handler to smoothly interrupt ongoing runs. non-windows only.
2020-10-04 11:25:37 -04:00
f1ed6a9782
change word break characters to make direct variable expansion completion work
2020-10-04 11:25:05 -04:00
2eb07f7427
add expansions of IDs and references to IDs
2020-10-04 06:02:14 -04:00
c5514c0a36
windows portability fix
2020-10-03 22:02:13 -04:00
acf53ff55e
add a few more context aware matcher functions
2020-10-03 12:26:40 -04:00
b231fa8a16
add completion for force style names
2020-10-03 11:32:56 -04:00
22cbac0b01
initial version of LAMMPS shell. without build system support (yet).
2020-10-03 09:49:35 -04:00