83fa2cbc93
enable PotentialFileReader class to change line buffer size
2025-05-13 06:02:10 -04:00
2b485a3f62
be more paranoid about cleaning up
2024-08-20 04:10:15 -04:00
02752ddf6a
don't leak memory when throwing an exception
2024-08-20 01:15:53 -04:00
dca156eacc
Edits to devleoper doc files 2
2024-08-15 17:12:39 -06:00
b459d0c9b9
apply clang-format
2024-07-22 23:58:10 -04:00
e100a42087
(re)throw EOF exception when next_dvector() has not yet read any items
2023-12-16 17:07:37 -05:00
2132b1d904
update developer reference text
2022-10-24 11:08:26 -04:00
cccf3f6f78
change email for contacting LAMMPS developers, add to homepage checker
2022-10-20 20:36:03 -04:00
d4ea5ca49e
more clang-tidy fixes after re-running it with added settings
2022-05-14 07:18:05 -04:00
4e81adaf8c
make buffer size for text file reader adjustable
2022-04-09 17:46:47 -04:00
61f28aea36
add "rewind()" member function to Text and Potential file reader classes
2022-03-23 14:44:50 -04:00
2106075320
use call-by-value with std::move() function
2021-10-14 01:30:18 -04:00
22f295ffd8
Prevent buffer overflow in TextFileReader::next_dvector()
2021-09-08 10:52:42 -04:00
c19d37990d
reformat with clang-format
2021-07-20 18:31:52 -04:00
09c19a936b
update URLs in source code and manual
2021-05-24 14:18:20 -04:00
d1941392d3
disable clang-format for all existing .cpp files (for now)
2021-05-05 23:53:38 -04:00
0eee2d013d
add info to docs
2021-04-26 12:27:34 -04:00
dbd7d454b9
for consistent behavior we must not close the file pointer when it was passed as argument
2021-04-26 12:12:19 -04:00
8af1530e29
throw EOF exception in TextFileReader::next_values() if next_line() doesn't do it
2021-04-26 11:27:17 -04:00
ac60cfb0c3
add custom constructor for TextFileReader that uses an already opened file descriptor
2021-04-26 11:26:50 -04:00
ef858ae70f
silence compiler warnings
2021-04-23 16:19:57 -04:00
0870a56093
expand exception message to include cause of file open failure
2021-04-15 11:57:48 -04:00
5d5fc4a04d
simplify by using utils::strdup()
2021-03-16 08:56:52 -04:00
51a20175c9
more code formatting consistency changes for loops and conditionals
2020-12-30 09:47:45 -05:00
adf74b3a22
use https://lammps.sandia.gov based URLs consistently
2020-10-21 16:45:30 -04:00
29a7d598ac
update formatting style to be more consistent
2020-09-21 02:04:58 -04:00
9a6dfbc0ee
add some cross referencing
2020-09-18 13:45:33 -04:00
c7c4297cfc
update include handling for commands
2020-09-03 00:51:58 -04:00
33f2cbc713
add docs for TextFileReader class to developer guide
2020-08-31 06:57:16 -04:00
645d3b61ba
Only count new words
2020-06-11 13:49:58 -04:00
9945f73743
fix spelling in a few more files
2020-06-11 01:05:58 -04:00
2203e1e9e5
Change next_dvector(n, buf) to next_dvector(buf, n)
2020-06-05 16:40:14 -04:00
7df387f7d5
Merge remote-tracking branch 'origin/master' into refactor-table-reading
2020-06-05 12:09:57 -04:00
8689b31bca
Add convenience method next_values
2020-06-04 16:27:27 -04:00
e5263e502d
Fix bug in next_dvector
...
It did not ignore comment lines
2020-06-04 16:24:48 -04:00
9291d2a9d7
Simplify count_words, add trim_and_count_words
...
The original count_words function (before it was put into utils::) also trimmed
comments. For compatibility this behaviour was retained at first. However, due
to the name the trimming is not immediatly apparent and many times not
wanted.
Therefore, this commit replaces count_words with an implementation that
just does what it says. If a comment should be trimmed there is a
trim_comment function. For convenience, a trim_and_count_words function was
added and is now used where the old behaviour was needed.
2020-06-04 11:13:37 -04:00
5688fd41bb
Remove trailing whitespace
2020-06-02 16:43:41 -04:00
24a0933e2a
Refactor PotentialFileReader
2020-06-02 14:18:11 -04:00