Skip to content

Commit f4a18fc

Browse files
authored
Merge pull request #73 from singraber/nnp-select_remaining_set
Tool nnp-select puts out also the rejected cfgs
2 parents bf4db65 + 26cc4bb commit f4a18fc

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/application/nnp-select.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ int main(int argc, char* argv[])
5555
Log log;
5656
ifstream inputFile;
5757
ofstream outputFile;
58+
ofstream rejectFile;
5859
ofstream logFile;
5960

6061
logFile.open("nnp-select.log");
@@ -99,6 +100,7 @@ int main(int argc, char* argv[])
99100

100101
inputFile.open("input.data");
101102
outputFile.open("output.data");
103+
rejectFile.open("reject.data");
102104
string line;
103105
while (getline(inputFile, line))
104106
{
@@ -125,9 +127,14 @@ int main(int argc, char* argv[])
125127
{
126128
outputFile << line << '\n';
127129
}
130+
else
131+
{
132+
rejectFile << line << '\n';
133+
}
128134
}
129135
inputFile.close();
130136
outputFile.close();
137+
rejectFile.close();
131138

132139
log << "*****************************************"
133140
"**************************************\n";

src/doc/sphinx/source/Tools/nnp-select.rst

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ File output:
5151
------------
5252

5353
* ``output.data``\ : The requested subset of training structures.
54+
* ``reject.data``\ : The rejected configurations, i.e. all data minus ``output.data``.
5455
* ``nnp-select.log`` : Log file (copy of screen output).
5556

5657
Examples:

src/libnnp/version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#ifndef VERSION_H
1818
#define VERSION_H
1919

20-
#define NNP_VERSION "2.0.2"
20+
#define NNP_VERSION "2.0.3"
2121
#define NNP_GIT_REV ""
2222
#define NNP_GIT_REV_SHORT ""
2323
#define NNP_GIT_BRANCH ""

0 commit comments

Comments
 (0)