Merge pull request #388 from akva2/fix_deprecation_warning

drop use of deprecated std::bind1first
This commit is contained in:
Bård Skaflestad 2024-07-02 21:15:21 +02:00 committed by GitHub
commit e383184598
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -478,7 +478,7 @@ try
// to avoid division by zero and to avoid special handling of negative
// capillary pressure in the code above.
std::transform(Pvalues.begin(), Pvalues.end(), Pvalues.begin(),
std::bind1st(std::multiplies<double>(), surfaceTension));
[surfaceTension](const double val) { return val*surfaceTension; });
/*
* Step 9a: Verify results