Skip to content

Conversation

@akeeste
Copy link
Contributor

@akeeste akeeste commented Jul 12, 2024

This is a bugfix PR to read Capytaine data when there are multiple bodies, each containing <6 DOF of hydrodynamic data

@jniffene see this one-line bugfix for our TEAMER project

@akeeste akeeste self-assigned this Jul 12, 2024
@akeeste akeeste added Bug bug in WEC-Sim source, high priority BEM/BEMIO related to BEMIO or BEM hydro data labels Jul 12, 2024
@akeeste
Copy link
Contributor Author

akeeste commented Jul 12, 2024

@jniffene please test this out and let me know if it fixes the issue with our 3-body, 1-dof Capytaine case.

@jniffene
Copy link
Collaborator

@jniffene please test this out and let me know if it fixes the issue with our 3-body, 1-dof Capytaine case.

Yea it works now! Thanks!

@akeeste
Copy link
Contributor Author

akeeste commented Aug 14, 2024

Hey @MShabara, let me know if this fix still works for you. Building off of your comment to me, I switched to use the length of sorted_dofs. This should be the most robust because it will always contain all required DOFs (6 rigid + possible GBM), even in the case of GBM modes on some but not all bodies.

@MShabara MShabara self-requested a review August 15, 2024 13:54
@MShabara
Copy link
Contributor

Hi @akeeste, the modification works for me, I tested the modifications and they work fine. I will go ahead and merge the pull request.

@MShabara MShabara merged commit 2cf66de into WEC-Sim:main Aug 15, 2024
@kmruehl kmruehl mentioned this pull request Aug 21, 2024
@akeeste akeeste deleted the bugfix_readCapytaine branch September 5, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BEM/BEMIO related to BEMIO or BEM hydro data Bug bug in WEC-Sim source, high priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants