Skip to content

Conversation

@RyanDavies19
Copy link
Collaborator

This adds a dummy AllOutput function to the old API wrapper that prints a message stating "In version 2, AllOutput is automatically called by MoorDynStep". This reduces warning messages when using the old API. This was seen when updating the WECSim libraries in WEC-Sim/MoorDyn#7.

@sanguinariojoe, let me know if there is a better way to print the message here. I didn't see anything in the C header files that allowed for the use of LOGMSG.

@RyanDavies19
Copy link
Collaborator Author

Apologies for the spam here with testing, windows compiling is my nemesis.

In order to keep compilers happy, I renamed the AllOutput function to WriteOutputs. This matches what is in the MD-F code, and IMO is more clear about what is happening.

@sanguinariojoe
Copy link
Collaborator

@sanguinariojoe, let me know if there is a better way to print the message here. I didn't see anything in the C header files that allowed for the use of LOGMSG.

You can use MoorDyn_Log

@RyanDavies19
Copy link
Collaborator Author

@sanguinariojoe just made that change, this should be good to go now

@sanguinariojoe sanguinariojoe merged commit 7720e4a into FloatingArrayDesign:dev Jan 13, 2025
7 of 9 checks passed
@RyanDavies19 RyanDavies19 deleted the oldAPI_fix branch January 13, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants