mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-13 09:28:23 +01:00
Merge branch 'fix-dt' into 'main'
fix: use maximum alpha for CFL condition See merge request naaice/tug!22
This commit is contained in:
commit
f651c1d158
@ -199,7 +199,7 @@ public:
|
||||
const T minDeltaSquare = std::min(deltaColSquare, deltaRowSquare);
|
||||
|
||||
const T maxAlpha =
|
||||
std::min(grid.getAlphaX().maxCoeff(), grid.getAlphaY().maxCoeff());
|
||||
std::max(grid.getAlphaX().maxCoeff(), grid.getAlphaY().maxCoeff());
|
||||
|
||||
cfl = minDeltaSquare / (4 * maxAlpha);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user