mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
@@ -331,7 +331,7 @@ namespace Opm
|
||||
return primary_variables_evaluation_[GFrac];
|
||||
}
|
||||
|
||||
if (has_solvent && compIdx == contiSolventEqIdx) {
|
||||
if (has_solvent && compIdx == (unsigned)contiSolventEqIdx) {
|
||||
return primary_variables_evaluation_[SFrac];
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Opm
|
||||
bool converged;
|
||||
|
||||
/// Default constructor initializing all times to 0.0.
|
||||
SimulatorReport(bool verbose=true);
|
||||
explicit SimulatorReport(bool verbose=true);
|
||||
/// Copy constructor
|
||||
SimulatorReport(const SimulatorReport&) = default;
|
||||
/// Increment this report's times by those in sr.
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
struct SortByAbsFlux
|
||||
{
|
||||
SortByAbsFlux(const double* flux)
|
||||
explicit SortByAbsFlux(const double* flux)
|
||||
: flux_(flux)
|
||||
{}
|
||||
bool operator() (int f1, int f2)
|
||||
|
||||
@@ -318,7 +318,6 @@ namespace Opm
|
||||
|
||||
|
||||
//double res_vol;
|
||||
double tot_sat;
|
||||
const double epsilon = std::sqrt(std::numeric_limits<double>::epsilon());
|
||||
|
||||
for (int c = 0; c < nc; ++c) {
|
||||
@@ -332,7 +331,7 @@ namespace Opm
|
||||
|
||||
dgesv_(&n, &nrhs, &A[0], &lda, &piv[0], &s[0], &ldb, &info);
|
||||
|
||||
tot_sat = 0;
|
||||
double tot_sat = 0;
|
||||
for (int p = 0; p < np; ++p){
|
||||
if (s[p] < epsilon) // saturation may be less then zero due to round of errors
|
||||
s[p] = 0;
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace Opm
|
||||
mu_w_eff = 1./mu_w_eff;
|
||||
}
|
||||
|
||||
void PolymerProperties::effectiveViscWithDer(const double c, const double mu_w, double& mu_w_eff, double dmu_w_eff_dc) const {
|
||||
void PolymerProperties::effectiveViscWithDer(const double c, const double mu_w, double& mu_w_eff, double& dmu_w_eff_dc) const {
|
||||
effectiveInvViscWithDer(c, mu_w, mu_w_eff, dmu_w_eff_dc);
|
||||
mu_w_eff = 1./mu_w_eff;
|
||||
dmu_w_eff_dc = -dmu_w_eff_dc*mu_w_eff*mu_w_eff;
|
||||
|
||||
@@ -283,7 +283,7 @@ namespace Opm
|
||||
|
||||
void effectiveViscWithDer(const double c, const double visc
|
||||
, double& mu_w_eff
|
||||
, double dmu_w_eff_dc) const;
|
||||
, double& dmu_w_eff_dc) const;
|
||||
|
||||
void effectiveInvVisc(const double c, const double mu_w,
|
||||
double& inv_mu_w_eff) const;
|
||||
|
||||
@@ -306,7 +306,7 @@ namespace Opm
|
||||
mutable double s; // Mutable in order to change it with every operator() call to be the last computed s value.
|
||||
TransportSolverTwophaseCompressiblePolymer::ResidualEquation& res_eq_;
|
||||
explicit ResidualC(TransportSolverTwophaseCompressiblePolymer::ResidualEquation& res_eq)
|
||||
: res_eq_(res_eq)
|
||||
: s(0.0), res_eq_(res_eq)
|
||||
{}
|
||||
|
||||
void computeBothResiduals(const double s_arg, const double c_arg, double& res_s, double& res_c, double& mc, double& ff) const
|
||||
|
||||
@@ -87,7 +87,9 @@ try
|
||||
/// We open an output file stream for the output
|
||||
/// \snippet tutorial1.cpp output stream
|
||||
/// \internal [output stream]
|
||||
#ifdef DISABLE_OUTPUT
|
||||
std::ofstream vtkfile("tutorial1.vtu");
|
||||
#endif
|
||||
/// \internal [output stream]
|
||||
/// \endinternal
|
||||
/// \page tutorial1
|
||||
|
||||
Reference in New Issue
Block a user