diff --git a/src/MPIMCI.hpp b/src/MPIMCI.hpp index 61a86fa..ca4b1d1 100644 --- a/src/MPIMCI.hpp +++ b/src/MPIMCI.hpp @@ -47,6 +47,8 @@ namespace MPIMCI std::ifstream seedfile; seedfile.open(filename); + if (!seedfile.good()) {throw std::runtime_error("Random seed file could not be found.");} + for (int i=0; i