Skip to content

Commit

Permalink
Merge pull request #73 from singraber/nnp-select_remaining_set
Browse files Browse the repository at this point in the history
Tool nnp-select puts out also the rejected cfgs
  • Loading branch information
singraber authored Nov 30, 2020
2 parents bf4db65 + 26cc4bb commit f4a18fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/application/nnp-select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ int main(int argc, char* argv[])
Log log;
ifstream inputFile;
ofstream outputFile;
ofstream rejectFile;
ofstream logFile;

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

inputFile.open("input.data");
outputFile.open("output.data");
rejectFile.open("reject.data");
string line;
while (getline(inputFile, line))
{
Expand All @@ -125,9 +127,14 @@ int main(int argc, char* argv[])
{
outputFile << line << '\n';
}
else
{
rejectFile << line << '\n';
}
}
inputFile.close();
outputFile.close();
rejectFile.close();

log << "*****************************************"
"**************************************\n";
Expand Down
1 change: 1 addition & 0 deletions src/doc/sphinx/source/Tools/nnp-select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ File output:
------------

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

Examples:
Expand Down
2 changes: 1 addition & 1 deletion src/libnnp/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef VERSION_H
#define VERSION_H

#define NNP_VERSION "2.0.2"
#define NNP_VERSION "2.0.3"
#define NNP_GIT_REV ""
#define NNP_GIT_REV_SHORT ""
#define NNP_GIT_BRANCH ""
Expand Down

0 comments on commit f4a18fc

Please sign in to comment.