From: Denis Davydov Date: Thu, 11 May 2017 12:58:23 +0000 (+0200) Subject: add an assert in p::d::Tria::load() that the file exists X-Git-Tag: v9.0.0-rc1~1606^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b98cea848855ce13c1008c378bb3cddb446145fc;p=dealii.git add an assert in p::d::Tria::load() that the file exists --- 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;