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

SLSQP optimizer not working for v2 scripts #485

Open
friedenhe opened this issue Sep 16, 2023 · 0 comments
Open

SLSQP optimizer not working for v2 scripts #485

friedenhe opened this issue Sep 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@friedenhe
Copy link
Collaborator

Description

The SLSQP optimizer does not work for v2 scripts due to a recent pyOptSarse repo update.

Steps to reproduce issue

  1. Use the docker:latest version
  2. Run the DAFoam tutorial NACA0012/incompressible/runScript_v2.py

Current behavior

An error will occur:

ValueError: failed to initialize intent(inout) array -- expected elsize=8 but got 16 -- input 'D' not compatible to 'd'

Expected behavior

The v2 script should run without an error.

Note: this seems to be a problem for v2 scripts only. The v3 scripts still work with the SLSQP optimizer.

Code versions

  • Docker image latest
@friedenhe friedenhe added the bug Something isn't working label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant