Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Delft3D - FlowFMModel run. #68

Open
Carsopre opened this issue Nov 17, 2021 · 0 comments
Open

Fix Delft3D - FlowFMModel run. #68

Carsopre opened this issue Nov 17, 2021 · 0 comments

Comments

@Carsopre
Copy link
Collaborator

Carsopre commented Nov 17, 2021

When running test case test_given_delft3d_flowfm_case_runs it will fail at the update_lme method during the simulation run (so the initialise step seems to be working correctly) with the following error:

Exception has occurred: ValueError       (note: full exception trace is shown but execution is paused at: test_given_delft3d_flowfm_case_runs)
operands could not be broadcast together with remapped shapes [original->remapped]: (365,900)  and requested shape (365,2)

During handling of the above exception, another exception occurred:

  File "D:\repos\NBSDynamics\src\core\output\output_model.py", line 452, in update_lme
    _his_data["Iz"][ti, :] = coral.light[self.idx_stations, :].transpose()
  File "D:\repos\NBSDynamics\src\core\output\output_model.py", line 535, in update
    v_func()
  File "D:\repos\NBSDynamics\src\core\simulation\base_simulation.py", line 368, in run
    self.output.his_output.update(
  File "D:\repos\NBSDynamics\test\test_acceptance.py", line 166, in test_given_delft3d_flowfm_case_runs (Current frame)
    sim_run.run()

The test is done with the NBSDynamics provided kernel directory and using the model c01_test1_smalltidalbasin_vegblock that can be found in a directory within the same project.

Options to solve the problem:

  • Fix the simulation input. It could be that the current test case parameters do not adjust for a FlowFM test run for the c01_test1_smalltidalbasin_vegblock FM model.
  • Adapt the logic. It could also be that the current logic has been modified prior to the integration on this repo (reminder that there were several branches linked to the SVN Repo).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant