Skip to content
Snippets Groups Projects
Commit 3f4b0313 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

Merge branch 'cherry-pick-ab3d1a5b' into 'releases/3.3'

Merge branch 'fix/quad-precision-adl' into 'master'

See merge request !2404
parents f61e7a5d 59409085
No related branches found
No related tags found
2 merge requests!2449WIP: python script to extract modules,!2404Merge branch 'fix/quad-precision-adl' into 'master'
......@@ -348,7 +348,8 @@ public:
if (verbose_)
{
const auto cpuTime = wallClockTime();
const auto percent = std::round( time_ / endTime_ * 100 );
using std::round;
const auto percent = round( time_ / endTime_ * 100 );
std::cout << Fmt::format("[{:3.0f}%] ", percent)
<< Fmt::format("Time step {} done in {:.2g} seconds. ", timeStepIdx_, timeStepWallClockTime_)
<< Fmt::format("Wall clock time: {:.2g}, time: {:.5g}, time step size: {:.5g}\n", cpuTime, time_, previousTimeStepSize_);
......
......@@ -72,7 +72,7 @@ public:
using std::max;
const Scalar diffCoeff = volVars.diffusionCoefficient(phaseIdx, compIdxI, compIdxJ);
const Scalar porosity = volVars.porosity();
const Scalar sat = max(volVars.saturation(phaseIdx), 0.0);
const Scalar sat = max<Scalar>(volVars.saturation(phaseIdx), 0.0);
return porosity * (sat*sat*sat) * cbrt(porosity * sat) * diffCoeff;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment