diff --git a/opm/core/wells/WellsManager_impl.hpp b/opm/core/wells/WellsManager_impl.hpp index e2a1a314..b038bc0d 100644 --- a/opm/core/wells/WellsManager_impl.hpp +++ b/opm/core/wells/WellsManager_impl.hpp @@ -152,10 +152,6 @@ void WellsManager::createWellsFromSpecs(std::vector& wells, size_t if (cgit == cartesian_to_compressed.end()) { if ( is_parallel_run_ ) { - // \todo remove hack for parallel runs! HACK! - std::cerr<<" Warning: Cell with i,j,k indices " << i << ' ' << j << ' ' - << k << " not found in grid (well = " << well->name() - << ") Assuming a parallel run and ignoring it"<& wells, size_t // Check that the complete well is on this process if ( sum_completions_on_proc < completionSet->size() ) { - std::size_t missing = completionSet->size()-sum_completions_on_proc; - OPM_THROW(std::runtime_error, "Each well must be completely stored " - << "on one process! Not the case for " << well->name() << ": " - << missing << " completions missing."); + std::cout<< "Well "<< well->name() << " semms not be in " + << "completely in the disjoint partition of " + << "process deactivating here." << std::endl; + // Mark well as not existent on this process + wells_on_proc[wellIter-wells.begin()] = 0; + continue; } } }