Skip to content

Commit

Permalink
fix in group reporting format, added prgram trap back to ies (after t…
Browse files Browse the repository at this point in the history
…esting)
  • Loading branch information
jtwhite79 committed Aug 31, 2023
1 parent 5191052 commit 0eefea4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
3 changes: 2 additions & 1 deletion src/libs/pestpp_common/EnsembleMethodUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3515,7 +3515,8 @@ void L2PhiHandler::report_group(bool echo) {
{
for (auto& oo : o.second)
{
if (oo.second == 0.0)
//if (oo.second == 0.0)
if (snzgroups.find(oo.first) == snzgroups.end())
continue;
len = max(len,(int)oo.first.size());
}
Expand Down
4 changes: 4 additions & 0 deletions src/libs/pestpp_common/Pest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,10 @@ int Pest::process_ctl_file(ifstream& fin, string _pst_filename)
int Pest::process_ctl_file(ifstream& fin, string _pst_filename, ofstream& f_rec)
{
cout << "processing control file " << _pst_filename << endl;
if (!fin)
{
throw PestError("control file stream is not good");
}
string line;
string line_upper;
string section("");
Expand Down
38 changes: 19 additions & 19 deletions src/programs/pestpp-ies/pestpp-ies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ using namespace pest_utils;

int main(int argc, char* argv[])
{
//#ifndef _DEBUG
// try {
//#endif
#ifndef _DEBUG
try {
#endif
string version = PESTPP_VERSION;
cout << endl << endl;
cout << " pestpp-ies: a GLM iterative ensemble smoother" << endl << endl;
Expand Down Expand Up @@ -302,20 +302,20 @@ int main(int argc, char* argv[])
fout_rec.close();
return 0;

//#ifndef _DEBUG
// }
// catch (exception &e)
// {
// cout << "Error condition prevents further execution: " << endl << e.what() << endl;
// //cout << "press enter to continue" << endl;
// //char buf[256];
// //OperSys::gets_s(buf, sizeof(buf));
// return 1;
// }
// catch (...)
// {
// cout << "Error condition prevents further execution" << endl;
// return 1;
// }
//#endif
#ifndef _DEBUG
}
catch (exception &e)
{
cout << "Error condition prevents further execution: " << endl << e.what() << endl;
//cout << "press enter to continue" << endl;
//char buf[256];
//OperSys::gets_s(buf, sizeof(buf));
return 1;
}
catch (...)
{
cout << "Error condition prevents further execution" << endl;
return 1;
}
#endif
}

0 comments on commit 0eefea4

Please sign in to comment.