Formatting fixes.
This commit is contained in:
parent
b93bb4fcf9
commit
3e294a4a81
@ -106,14 +106,12 @@ namespace Opm
|
||||
double* output_B,
|
||||
double* output_dBdp) const
|
||||
{
|
||||
//B(n, p, 0, output_B);
|
||||
if (comp_) {
|
||||
// #pragma omp parallel for
|
||||
for (int i = 0; i < n; ++i) {
|
||||
//output_dBdp[i] = -comp_*output_B[i];
|
||||
double x = comp_*(p[i] - ref_press_);
|
||||
double d = (1.0 + x + 0.5*x*x);
|
||||
output_B[i] = ref_B_/d;//(1.0 + x + 0.5*x*x);
|
||||
output_B[i] = ref_B_/d;
|
||||
output_dBdp[i] = (-ref_B_/(d*d))*(1 + x) * comp_;
|
||||
}
|
||||
} else {
|
||||
|
@ -196,7 +196,6 @@ namespace Opm {
|
||||
} else {
|
||||
double x = std::min(xparam, xmax_);
|
||||
x = std::max(x, xmin_);
|
||||
|
||||
// Lookup is easy since we are uniform in x.
|
||||
double pos = (x - xmin_)/xdelta_;
|
||||
double posi = std::floor(pos);
|
||||
|
Loading…
Reference in New Issue
Block a user