From b98cea848855ce13c1008c378bb3cddb446145fc Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Thu, 11 May 2017 14:58:23 +0200 Subject: [PATCH] add an assert in p::d::Tria::load() that the file exists --- source/distributed/tria.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index a28a55eb3e..f2a9ed6282 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -1830,6 +1830,8 @@ namespace parallel { std::string fname=std::string(filename)+".info"; std::ifstream f(fname.c_str()); + Assert (f, ExcMessage("Could not open the file <" + + fname + ">.")); std::string firstline; getline(f, firstline); //skip first line f >> version >> numcpus >> attached_size >> attached_count >> n_coarse_cells; -- 2.39.5