Hi,
Thanks for your interest in the software. The windows build is rather
tricky, and not well documented.
DEVSIM has 3 interpreters:
Tcl 8.6
Python 2.7
Python 3.6
Almost all of the python scripts run in python 2, but could be easily
converted using 2to3 for python 3. Many of the scripts in the testing
directory are written in Tcl.
The deploytest51 was just released. It builds the Tcl interpreter
from the one available in Anaconda, as opposed to the one from
ActiveState.
Below are instructions for 2 options. Using a binary release with
option 1 is recommended. Compiling from source with option 2 requires
a lot more work.
Please let us know if you need any help, or have additional questions.
Regards,
Juan
Option 1
To run devsim, you can just start the Anaconda Prompt with a python 2
or python 3 environment. By activating the appropriate environment,
you set the paths required for devsim to run.
You then run devsim (python 2) or devsim_py3 (python 3) on the scripts
in the examples or testing directory. The "mkl" package is needed in
both environments for the blas libraries. The "tk" package is
required if you would like to run one of the Tcl examples using
devsim_tcl.
For some of the examples, you need to set PYTHONPATH to the base
directory of the devsim installation.
Option 2
Below is a detailed discussion of compiling devsim yourself. If you
are happy with the binary releases, I suggest following the
instructions above.
The windows release version of devsim is an automated build using the
appveyor ci at
https://appveyor.com. These scripts can be readily
adapted for a software developer environment.
I recommend following the build steps in appveyor.yml. The paths will
certainly need to be updated from those in the appveyor build
environment.
The most important files are:
appveyor.yml
cmake/appveyor.cmake
scripts/setup_appveyor.sh
For the symdiff submodule:
external/symdiff/appveyor.cmake
external/symdiff/scripts/setup_appveyor.sh
The SYMDIFF_CONFIG and DEVSIM_CONFIG variables in both of the setup
scripts set the base name for the ".cmake" script that gets included.
The ".cmake" files are where you set the paths appropriate to your installation.
The PYTHON, TCL, and MKL variables will point into your Anaconda (or
Miniconda) installation.
I recommend getting the 64 bit build windows dependencies from here:
https://github.com/devsim/devsim_win32_deps/releases/download/VisualStudio2017v3/devsim_win32_deps.zip
This provides the precompiled static libraries for:
SuperLU
zlib
sqlite
CGNS
If a 32-bit build is required, it should be straighforward to download
the devsim_win32_deps repo and adapt and run the build script.
Note that you need to install cygwin to run the bash scripts, bison, flex.
The dist directory contains the package_win32.sh script for creating a
binary distribution from the build. For the Python 2.7 version, it
also copies the manifest from python.exe to devsim.exe. Without this
manifest, devsim will not run.