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

Static windfield still expects 2D array #537

Open
jangroter opened this issue Dec 10, 2024 · 0 comments
Open

Static windfield still expects 2D array #537

jangroter opened this issue Dec 10, 2024 · 0 comments

Comments

@jangroter
Copy link

If a static windfield is defined by using Windfield.addpointvne(), the code will crash in Windfield.getdata() line 218: vnorth = ones(npos)*self.vnorth[0,0].

Because self.vnorth is static, I figured it should only contain one element. Can be bypassed by initializing your windfield as a 2D array of size (1,1), e.g. [[0]]. If this is the intended approach, maybe the description of addpointvne() should be altered to more clearly specify the expected input structure.

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