mirror of https://gitlab.com/pamhyr/pamhyr2
Solver: Mage: Fix profile sediment export.
parent
6522cea03f
commit
3c738ebcb9
|
|
@ -184,17 +184,17 @@ class Mage(CommandLineSolver):
|
||||||
if not any(filter(lambda f: ".GRA" in f, files)):
|
if not any(filter(lambda f: ".GRA" in f, files)):
|
||||||
files.append(self._gra_file)
|
files.append(self._gra_file)
|
||||||
|
|
||||||
# Number of layers
|
# Number of layers
|
||||||
nl = len(profile.sl)
|
nl = len(profile.sl)
|
||||||
sediment = f" {nl:>3}"
|
sediment = f" {nl:>3}"
|
||||||
|
|
||||||
# Layers data
|
# Layers data
|
||||||
for layer in profile.sl.layers:
|
for layer in profile.sl.layers:
|
||||||
sediment += (
|
sediment += (
|
||||||
f" {layer.height:>10} {layer.d50:>10} " +
|
f" {layer.height:>10} {layer.d50:>10} " +
|
||||||
f"{layer.sigma:>10} " +
|
f"{layer.sigma:>10} " +
|
||||||
f"{layer.critical_constraint:>10}"
|
f"{layer.critical_constraint:>10}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Profile header line
|
# Profile header line
|
||||||
wfile.write(f"{num}{c1}{c2}{t} {kp} {name} {sediment}\n")
|
wfile.write(f"{num}{c1}{c2}{t} {kp} {name} {sediment}\n")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue