convert THROW to OPM_THROW

This commit is contained in:
Andreas Lauser 2013-08-28 13:59:03 +02:00
parent 66c0705e54
commit d69e463b30

View File

@ -406,7 +406,7 @@ int main ()
well_conditions_met = well_collection.conditionsMet(well_state.bhp(), well_resflowrates_phase, well_surflowrates_phase);
++well_iter;
if (!well_conditions_met && well_iter == max_well_iterations) {
THROW("Conditions not met within " << max_well_iterations<< " iterations.");
OPM_THROW(std::runtime_error, "Conditions not met within " << max_well_iterations<< " iterations.");
}
}
/// \internal[check well conditions]