Replies: 4 comments 1 reply
-
|
Hi Ignace, Good catch, thanks for pointing it out! I think I never really tested simulations with N > 1, my (very) bad. Your suggestion seems good to me. I managed to have the saltmarsh exemple (v8p2r1) running with adding these lines: If you can confirm this solves the issue, I will update the examples, and maybe add one that explicitly test N > 1 to make sure we keep it working. Another possibility might be to update the remove_time_step function of the Telemac class, with the possibility to avoid removing time step to some variables. What do you think? Either way, this would require an update of the code (or the examples), so I will move this to an issue. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
|
That was also how I solved it, altough if i < N-1: (you want to append it every iteration, except the last so if N = 4, you want it at i = 0, i = 1 and i = 2) |
Beta Was this translation helpful? Give feedback.
-
|
Of course, you're right. That's why I had this weird The solution is: If you think that's good enough, I'll update the examples. |
Beta Was this translation helpful? Give feedback.
-
|
Examples updated. New ones added with N = 2. Thanks @IgnaceP ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am playing around with increasing the number of tidal cycles in one morphological year (N variable in the run.py script in the examples). However, this results in an error in line 199 when i (for i in range(N) loop) is 1:
with the error being:
After the first iteration (i = 0), a new time step is added to tel instance for all variables, except for the 'coverage' variable, as this is done outside the for i in range(N) loop, at the end of the cellular automaton (line 303). However, as the the last time step is removed at the end of the for i in range(N) loop (line 232), this results in an empty tel.cov array and tel cannot be exported. I tried to fix this by appending a coverage state every iteration (for i in range(N)) loop, except the last one (the cellular automaton will take care of this).
I am curious what your thoughts are one this!
Beta Was this translation helpful? Give feedback.
All reactions