mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
convert users of the ASSERT and the ASSERT2 macros to standard assert()
This commit is contained in:
@@ -65,7 +65,7 @@ namespace Opm
|
||||
return;
|
||||
}
|
||||
const int n = cells.size();
|
||||
ASSERT(n > 0);
|
||||
assert(n > 0);
|
||||
std::vector<double> smin(num_phases_*n);
|
||||
std::vector<double> smax(num_phases_*n);
|
||||
props.satRange(n, &cells[0], &smin[0], &smax[0]);
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace Opm
|
||||
Density(const BlackoilPropertiesInterface& props) : props_(props) {}
|
||||
double operator()(const double pressure, const int phase)
|
||||
{
|
||||
ASSERT(props_.numPhases() == 2);
|
||||
assert(props_.numPhases() == 2);
|
||||
const double surfvol[2][2] = { { 1.0, 0.0 },
|
||||
{ 0.0, 1.0 } };
|
||||
// We do not handle multi-region PVT/EQUIL at this point.
|
||||
@@ -183,7 +183,7 @@ namespace Opm
|
||||
const double datum_p,
|
||||
State& state)
|
||||
{
|
||||
ASSERT(props.numPhases() == 2);
|
||||
assert(props.numPhases() == 2);
|
||||
|
||||
// Obtain max and min z for which we will need to compute p.
|
||||
const int num_cells = grid.number_of_cells;
|
||||
|
||||
Reference in New Issue
Block a user