Solver: RubarBE: Add RubarBE at solvers and fix export.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-04-08 15:11:04 +02:00
1 parent 982d346264
commit 6d9b193d25
4 files changed
+100 -61

No files matched your search

+3
View File
@@ -209,6 +209,9 @@ class Friction(SQLSubModel):
self._status.modified()
def __contains__(self, kp):
return self.contains_kp(kp)
def contains_kp(self, kp):
return (
self._begin_kp <= kp <= self._end_kp
+8 -4
View File
@@ -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