mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Solver: RubarBE: Add RubarBE at solvers and fix export.
This commit is contained in:
1 parent
982d346264
commit
6d9b193d25
4 files changed
+100
-61
No files matched your search
@@ -365,10 +365,14 @@ class Reach(SQLSubModel):
|
||||
return 0.0
|
||||
|
||||
def inter_profiles_kp(self):
|
||||
res_kp = [self.profile(0).kp]
|
||||
profiles = sorted(self.profiles, key=lambda p: p.kp)
|
||||
first = profiles[0]
|
||||
last = profiles[-1]
|
||||
|
||||
profiles = iter(self.profiles)
|
||||
previous = next(profile)
|
||||
res_kp = [first.kp]
|
||||
|
||||
profiles = iter(profiles)
|
||||
previous = next(profiles)
|
||||
|
||||
for profile in profiles:
|
||||
prev = previous.kp
|
||||
@@ -381,7 +385,7 @@ class Reach(SQLSubModel):
|
||||
|
||||
previous = profile
|
||||
|
||||
res_kp.append(self.profile(len(self) - 1).kp)
|
||||
res_kp.append(last.kp)
|
||||
return res_kp
|
||||
|
||||
# Sediment Layers
|
||||
|
||||
Reference in new issue
Block a user