clearning up some comments and debugging output

This commit is contained in:
Kai Bao 2015-10-22 17:05:38 +02:00
parent b1fdda00af
commit c8fbb0b80d
4 changed files with 0 additions and 68 deletions

View File

@ -793,15 +793,6 @@ namespace detail {
}
}
#if 0
std::cout << " state.bhp " << std::endl;
std::cout << state.bhp.value() << std::endl;
std::cout << " perf_press " << std::endl;
std::cout << perf_press << std::endl;
std::cout << " avg_press " << std::endl;
std::cout << avg_press << std::endl;
#endif
const std::vector<int>& well_cells = wops_.well_cells;
// Use cell values for the temperature as the wells don't knows its temperature yet.
@ -873,13 +864,6 @@ namespace detail {
// 4. Store the results
well_perforation_densities_ = Eigen::Map<const V>(cd.data(), nperf);
well_perforation_pressure_diffs_ = Eigen::Map<const V>(cdp.data(), nperf);
#if 0
std::cout << "well_perforation_densities_ " << std::endl;
std::cout << well_perforation_densities_ << std::endl;
std::cout << "well_perforation_pressure_diffs_ " << std::endl;
std::cout << well_perforation_pressure_diffs_ << std::endl;
std::cin.ignore();
#endif
}
@ -2219,15 +2203,6 @@ namespace detail {
const V dbhp_limited = sign(dbhp) * dbhp.abs().min(bhp_old.abs()*dpmaxrel);
const V bhp = bhp_old - dbhp_limited;
std::copy(&bhp[0], &bhp[0] + bhp.size(), well_state.bhp().begin());
#if 0
std::cout << " output wr in updateWellState " << std::endl;
std::cout << wr << std::endl;
std::cin.ignore();
std::cout << " output bhp is updateWellState " << std::endl;
std::cout << bhp << std::endl;
std::cin.ignore();
#endif
//Get gravity for THP hydrostatic correction
const double gravity = detail::getGravity(geo_.gravity(), UgGridHelpers::dimensions(grid_));

View File

@ -1,8 +1,5 @@
/*
Copyright 2013, 2015 SINTEF ICT, Applied Mathematics.
Copyright 2014, 2015 Statoil ASA.
Copyright 2014, 2015 Dr. Markus Blatt - HPC-Simulation-Software & Services
Copyright 2015 NTNU
This file is part of the Open Porous Media project (OPM).

View File

@ -1,9 +1,5 @@
/*
Copyright 2013, 2015 SINTEF ICT, Applied Mathematics.
Copyright 2014, 2015 Dr. Blatt - HPC-Simulation-Software & Services
Copyright 2014, 2015 Statoil ASA.
Copyright 2015 NTNU
Copyright 2015 IRIS AS
This file is part of the Open Porous Media project (OPM).

View File

@ -168,42 +168,6 @@ namespace Opm
}
}
}
#if 0
// Debugging output.
std::cout << " output all the well state informations after initialization " << std::endl;
const int nperf_total = nperf;
std::cout << " number of phase : " << np << " nubmer of perforations " << nperf_total << std::endl;
std::cout << " bhps : " << std::endl;
for (int i = 0; i < nw; ++i) {
std::cout << bhp()[i] << std::endl;
}
std::cout << " thps : " << std::endl;
for (int i = 0; i < nw; ++i) {
std::cout << thp()[i] << std::endl;
}
std::cout << " well rates " << std::endl;
for (int i = 0; i < nw; ++i) {
std::cout << i;
for (int p = 0; p < np; ++p) {
std::cout << " " << wellRates()[np * i + p];
}
std::cout << std::endl;
}
std::cout << " perf pressures and pref phase rates : " << std::endl;
for (int i = 0; i < nperf_total; ++i) {
std::cout << i << " " << perfPress()[i];
for (int p = 0; p < np; ++p) {
std::cout << " " << perfPhaseRates()[np * i + p];
}
std::cout << std::endl;
}
#endif
}
/// One rate per phase and well connection.