Compare commits

..

2 Commits

Author SHA1 Message Date
Theophile Terraz 07cae542b0 pep8 2026-02-24 09:18:47 +01:00
Theophile Terraz b693f67b99 debug RubarBE 2026-02-24 09:15:31 +01:00
3 changed files with 7 additions and 7 deletions

View File

@ -102,7 +102,7 @@ class InternalMeshing(AMeshingTool):
# calcul number of intermediate profiles # calcul number of intermediate profiles
np = [] np = []
for i in range(limites[0], limites[1]): for i in range(limites[0], limites[1]):
np.append(int((reach.profiles[i+1].rk - np.append(int(abs(reach.profiles[i+1].rk -
reach.profiles[i].rk) / step) - 1) reach.profiles[i].rk) / step) - 1)
if np[-1] < 0: if np[-1] < 0:
np[-1] = 0 np[-1] = 0

View File

@ -58,12 +58,12 @@ class Rubar3(CommandLineSolver):
("rubarbe_iovis", "n"), ("rubarbe_iovis", "n"),
("rubarbe_rep", "n"), ("rubarbe_rep", "n"),
("rubarbe_tinit", "000:00:00:00"), ("rubarbe_tinit", "000:00:00:00"),
("rubarbe_tmax", "999:99:99:00"), ("rubarbe_tmax", "000:01:00:00"), # 1 day
("rubarbe_tiopdt", "000:00:00:00"), ("rubarbe_tiopdt", "000:00:00:00"),
("rubarbe_dt", "5.0"), ("rubarbe_dt", "5.0"),
("rubarbe_ts", "999:99:99:00"), ("rubarbe_ts", "999:99:99:00"),
("rubarbe_dtsauv", "00:00:00:05"), ("rubarbe_dtsauv", "00:00:05:00"),
("rubarbe_psave", "00:00:00:05"), ("rubarbe_psave", "00:00:05:00"),
("rubarbe_fdeb1", "1"), ("rubarbe_fdeb1", "1"),
("rubarbe_fdeb2", "10"), ("rubarbe_fdeb2", "10"),
("rubarbe_fdeb3", "100"), ("rubarbe_fdeb3", "100"),

View File

@ -173,7 +173,7 @@ class Config(SQL):
posix = os.name == 'posix' posix = os.name == 'posix'
ext = "" if posix else ".exe" ext = "" if posix else ".exe"
path = os.path.join("@install_dir", path = os.path.join("@install_dir",
"rubar", f"rubar3{ext}") "rubar", f"rubarbe{ext}")
self.execute(f""" self.execute(f"""
INSERT INTO solver VALUES ( INSERT INTO solver VALUES (
@ -372,7 +372,7 @@ class Config(SQL):
ctor = solver_type_list["rubar3"] ctor = solver_type_list["rubar3"]
new = ctor("default-Rubar3") new = ctor("default-Rubar3")
new._description = "Default Pamhyr2 Rubar 3 version" new._description = "Default Pamhyr2 Rubar 3 version"
path = os.path.join("@install_dir", "rubar", f"rubar3{ext}") path = os.path.join("@install_dir", "rubar", f"rubarbe{ext}")
new._cmd_solver = f""""{path}" @args @input""" new._cmd_solver = f""""{path}" @args @input"""
self._solvers.append(new) self._solvers.append(new)