diff --git a/verification.cpp b/verification.cpp index 3920f60..d08568e 100644 --- a/verification.cpp +++ b/verification.cpp @@ -25,21 +25,64 @@ bool verify(std::string code_prefix){ bool verify(std::string code_prefix, double & rho_x, double & rho_z, int & n_Gx, int & n_Gz){ std::ifstream jsonfile(code_prefix+".json"); - json data = json::parse(jsonfile); + // json data = json::parse(jsonfile); + + json data; + try{ + data = json::parse(jsonfile); + } catch (std::exception& e){ + std::cout<