Commit Graph

45 Commits

Author SHA1 Message Date
d4ea5ca49e more clang-tidy fixes after re-running it with added settings 2022-05-14 07:18:05 -04:00
1a940e052e add support for and apply clang-format to lammps-shell code 2021-11-04 15:55:28 -04:00
d857685e74 use emplace_back() instead of push_back() 2021-10-14 01:31:48 -04:00
3ad75c40ec catch up on previous clang-tidy refactor for files that were skipped before 2021-10-13 23:59:43 -04:00
9fc23a2bda make use of platform namespace functions 2021-10-06 07:10:04 -04:00
37bfe3d0ce integrate platform sub-namespace into source code and documentation
this updates function calls to functions that have been moved from
the utils namepsace or the Info class to platform::
2021-10-02 16:55:11 -04:00
12406b90a1 more iwyu header updates 2021-09-18 21:24:01 -04:00
2b3a09ac88 a few remaining updates to include statements 2021-09-18 16:36:44 -04:00
bca99f684f update list and order of include files from include-what-you-use analysis 2021-09-18 14:16:48 -04:00
e070766915 including lmpwindows.h globally from lmptype.h does more harm than good
this addresses some (cross) compilation issues locally.
in the long run, this should be addressed by implementing issue #1884
where platform specific functionality is wrapped into a small library
of generic functions adapted for LAMMPS' needs (like utils:: does for
non-portable convenience functions).
2021-09-07 10:39:16 -04:00
4738337e47 update/trim list of include files according to the IWYU principle 2021-04-24 13:22:39 -04:00
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
c51d2a286a call resource compiler to include icon files into LAMMPS shell on Windows 2020-10-23 20:06:21 -04:00
3242cd5d31 mention desktop file and icons in README 2020-10-23 00:29:48 -04:00
8854e7b8de Add desktop integration for LAMMPS shell 2020-10-23 00:20:15 -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
65eb4b5527 explicitly enable C++11 and use pkg-config to get readline flags 2020-10-14 14:33:12 -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
f3b33ea0c6 address spelling issues 2020-10-04 14:10:35 -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
e360219a8a add readme and makefile for LAMMPS shell 2020-10-04 12:28:01 -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