TerrainGen coverage


terraingen/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
11 / 11
100.0%
Branches:
-
-%
Functions:
4 / 4
100.0%

layers/craters/degradation/diffusivities.cpp
Line Branch Exec Source
1 #include "terraingen/layers/craters/degradation/diffusivities.h"
2
3 #include <cmath>
4
5 namespace terraingen {
6
7 7 PowerLawDiffusivity FassettThomson2014Diffusivity() {
8 7 return {5.5, 0.0, 0.0};
9 }
10
11 27 PowerLawDiffusivity Fassett2022HartmannDiffusivity() {
12 27 return {3.6, 0.87, 5.0};
13 }
14
15 21 PowerLawDiffusivity Fassett2022TraskDiffusivity() {
16 21 return {3.1, 1.05, 5.0};
17 }
18
19 5 double FassettThomson2014DiffusionAge(double ageGyr) {
20 5 const double t = ageGyr;
21 5 const double kappaT =
22 5 (((435.83 * t - 3621.2) * t + 11204.0) * t - 16811.0) * t * t + 17546.0 * t;
23 5 return std::fmax(0.0, kappaT);
24 }
25
26 } // namespace terraingen
27