Skip to content

SNOPT not working with the docker (topology optimization tutorial) #94

Answered by friedenhe
AGHSMI asked this question in Tutorials
Discussion options

You must be logged in to vote

Follow the exact instructions from here to compile SNOPT. You need to start and log in to a DAFoam docker container, download pyoptsparse-2.3.0 (you can put it anywhere), copy SNOPT source files to pyoptsparse-2.3.0/pyoptsparse/pySNOPT/source, and run pip install . This will compile snopt.so and save it to $HOME/dafoam/packages/miniconda3/lib/python3.6/site-packages/pyoptsparse/pySNOPT in the container. You will have to do this every time you log in to the docker container. This is because everything will be deleted after you exit the docker container. So I suggest you compile the dafoam package from scratch for this case.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AGHSMI
Comment options

@AGHSMI
Comment options

Answer selected by AGHSMI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants