modelon-community / Assimulo

Assimulo is a simulation package for solving ordinary differential equations.
https://jmodelica.org/assimulo/index.html
GNU Lesser General Public License v3.0
66 stars 16 forks source link

Support sundials 5.x #10

Closed jschueller closed 2 years ago

jschueller commented 4 years ago

latest is not supported: https://github.com/LLNL/sundials/releases

Tony607 commented 4 years ago

Have the same issue when building Assimulo with latest sundials 5.3.0.

apt update && apt install -y build-essential
apt-get install -y libblas-dev liblapack-dev gfortran libgfortran3

export SV=5.3.0 \
    && curl https://github.com/LLNL/sundials/releases/download/v${SV}/sundials-${SV}.tar.gz --output sundials-${SV}.tar.gz \
    && tar -xzf sundials-${SV}.tar.gz \
    && rm sundials-${SV}.tar.gz \
    && mkdir sundials-${SV}_build \
    && cd sundials-${SV}_build \
    && cmake ../sundials-${SV} \
    && make install

curl https://github.com/modelon-community/Assimulo/archive/Assimulo-3.2.tar.gz --output Assimulo-3.2.tar.gz \
    && tar -xzf Assimulo-3.2.tar.gz \
    && rm Assimulo-3.2.tar.gz \
    && cd Assimulo-Assimulo-3.2/ \
    && pip install Cython -U \
    && python setup.py install \
    && cd .. \
    && rm -rf Assimulo-Assimulo-3.2

During executing python setup.py install, it generates the error,

sortvarnames: failed to compute dependencies because of cyclic dependencies between am, n

Attached the full build log executing python setup.py install.

Assimulo_build_error_sundials_5.3.0.txt