Skip to content

Conversation

@jtgrasb
Copy link

@jtgrasb jtgrasb commented Oct 22, 2025

This PR adds a function that can be called to disable the console window when using the v1 API. This will allow WEC-Sim to disable the console window before initializing MoorDyn, hopefully resolving issues with MATLAB crashing. See #327.

@sanguinariojoe
Copy link
Collaborator

sanguinariojoe commented Oct 23, 2025 via email

@RyanDavies19
Copy link
Collaborator

@jtgrasb, could you implement @sanguinariojoe suggestion for the close function?

@jtgrasb
Copy link
Author

jtgrasb commented Oct 27, 2025

@sanguinariojoe To clarify, do you mean adding OwnConsoleWindow = 0 after this if statement?

if (OwnConsoleWindow == 1) {
		std::cout << "press enter to close: " << std::endl;
		std::cin.get();
		FreeConsole();
	}

@sanguinariojoe
Copy link
Collaborator

sanguinariojoe commented Oct 27, 2025 via email

@RyanDavies19
Copy link
Collaborator

@jtgrasb, also it looks like some of the tests are failing because compilers are not liking that stdbool is not included in the include headers. Might be easiest to just change to an int

@sanguinariojoe
Copy link
Collaborator

The pipeline is failing... But it has been failing since 28th August. I cannot see any commit that might triggered the issue. We should investigate that @RyanDavies19

Anyway, @jtgrasb increase the version here to 2.5.0 please. After that you can proceed to squash and merge guys (remember to put a sensible commit message according to the conventional commits standard)

@jtgrasb
Copy link
Author

jtgrasb commented Nov 12, 2025

@sanguinariojoe @RyanDavies19 Thanks for the help. I think this PR should be good to merge.

@RyanDavies19
Copy link
Collaborator

@jtgrasb I haven't had a chance to look over why the tests are still failing, but I'm fairly confident it isn't because of your changes. Do they pass when you run them locally?

@sanguinariojoe
Copy link
Collaborator

OK, Apparently the CMake fails are caused by GitHUB actions shifting macos-latest to arm64 arch (see here). Why is that a problem for math? no idea...

Anyway, Both the Python wrapper and the Matlab wrapper shall be running just fine:

https://github.com/core-marine-dev/MoorDyn/actions/runs/19419494577
https://github.com/core-marine-dev/MoorDyn/actions/runs/19419494575/job/55554020202

So there is something introduced here which is breaking the wrappers.

DO NOT MERGE UNTIL FIXED PLEASE.

I will first try to fix the problems on the CI/CD and then I will focus on this (if not fixed yet)

@sanguinariojoe
Copy link
Collaborator

I think the problem is because the version increase, something is wrong with the versions reading... I will tackle that

@sanguinariojoe
Copy link
Collaborator

@jtgrasb please rebase dev, that should fix the issue

@jtgrasb
Copy link
Author

jtgrasb commented Nov 17, 2025

@sanguinariojoe Thanks for the suggestions. I've rebased, hopefully that fixes the issues.

@RyanDavies19
Copy link
Collaborator

Thanks @sanguinariojoe for the fix! All the tests are now passing so merging

@RyanDavies19 RyanDavies19 merged commit b69ecbe into FloatingArrayDesign:dev Nov 18, 2025
6 of 7 checks passed
@sanguinariojoe
Copy link
Collaborator

@RyanDavies19 , you should squash and merge, not merge directly. And you should set a conventional commit.

I am adding an useless commit to document the changes

@jtgrasb
Copy link
Author

jtgrasb commented Nov 18, 2025

Great, thanks for merging! I assume the plan is to release as v2.5.0 now?

@sanguinariojoe
Copy link
Collaborator

Great, thanks for merging! I assume the plan is to release as v2.5.0 now?

I was not planning to. But if it is OK with @RyanDavies19 ... It will be a storm of shit with all the changes on github actions and so on, you will see...

@RyanDavies19
Copy link
Collaborator

@sanguinariojoe thanks for the reminder on conventional commits. @jtgrasb do you need a release for WECSim?

@jtgrasb
Copy link
Author

jtgrasb commented Nov 24, 2025

@RyanDavies19 On our end, it would be nice to have a new release to avoid the crashing of MATLAB which disrupts our CI. As suggested by @sanguinariojoe, I've already increased the version number to v2.5.0 in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants