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

Python version of SWM code #2

Open
supreethms1809 opened this issue Feb 21, 2024 · 5 comments
Open

Python version of SWM code #2

supreethms1809 opened this issue Feb 21, 2024 · 5 comments

Comments

@supreethms1809
Copy link
Contributor

@cenamiller I have created a new Python version of the SWM code.
Currently, Boundary conditions are disabled. I am getting an index out-of-bound error when I enable it.
Need a little debugging.

@cenamiller
Copy link
Collaborator

Thanks @supreethms1809! We can take a look

@cenamiller
Copy link
Collaborator

@supreethms1809 looks like initial elements of u are off

@richloft
Copy link
Collaborator

richloft commented Feb 21, 2024 via email

@supreethms1809
Copy link
Contributor Author

@supreethms1809 looks like initial elements of u are off

Yeah, the index has an issue when initializing the boundary conditions. So I have commented out the boundary conditions code. that's why the initial elements are off

@supreethms1809
Copy link
Contributor Author

Supreeth- Happy to help too. I know SWM quite well. I have a Python version I created for laughs soon after retiring. Curious what tool you’re using to debug Python code, and why you created a new Python SWM? Rich

@richloft
Hi Dr. Loft.. we are attending a hackathon (today and three more days next week) and using SWM code in this hackathon. Our goal is to implement SWM with gt4py. So, as a first step, we are converting SWM to Python.
As of now, I am just doing manual debugging.

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

3 participants