Wasora & plugins compiled with SUNDIALS 3.x

17 views
Skip to first unread message

Jeremy Theler

unread,
Apr 30, 2019, 3:19:53 PM4/30/19
to was...@seamplex.com
Yesterday I received a report that milonga was not compiling in Ubuntu 18.10.
The problem was that SUNDIALS 3.x is making its way into the official repositories.
Actually Debian Buster also ships with SUNDIALS 3.x

I made a quick hack to have wasora to autodetect either 2.x or 3.x and compile accordingly (there are some changes in the API).

Further testing of compilation and running will be appreciated.


Regards
--
jeremy theler

Vitor Vasconcelos

unread,
Apr 30, 2019, 4:22:28 PM4/30/19
to was...@seamplex.com
Hi,

I spent some time trying to install wasora on Fedora 29 (which ships
with SUNDIALS 3.x) but there is a problem with PERL when I try to run
./autogen.sh.
I'll be back to it later and keep you updated.

Vitor

Em ter, 30 de abr de 2019 às 16:19, Jeremy Theler
<jer...@seamplex.com> escreveu:
> --
> You received this message because you are subscribed to the Google Groups "wasora" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wasora+un...@seamplex.com.
> To post to this group, send email to was...@seamplex.com.
> Visit this group at https://groups.google.com/a/seamplex.com/group/wasora/.
> To view this discussion on the web visit https://groups.google.com/a/seamplex.com/d/msgid/wasora/9a4fcf07258d6f469b1488c58a02e9081e2b9fb5.camel%40seamplex.com.
> For more options, visit https://groups.google.com/a/seamplex.com/d/optout.

Jeremy Theler

unread,
Apr 30, 2019, 4:23:47 PM4/30/19
to was...@seamplex.com
Hi Vitor

That is strange, as there should be no dependency on Perl whatsoever

:-/

Vitor Vasconcelos

unread,
Apr 30, 2019, 4:36:45 PM4/30/19
to was...@seamplex.com
Hi Germán,

Yeah, strange. But there is something broken on the Perl installation
which somehow affects autoreconf (and every Perl 'using strict' call).
Anyway, it runs as root. So, a workaround running autogen.sh as root
and fixing files ownership worked fine.

-------------------------------------------------------------------------------------------------
[cfx@hornet-lx wasora]$ wasora --version
wasora v0.6.5-g8932559
wasora’s an advanced suite for optimization & reactor analysis

wasora is copyright (C) 2009-2019 jeremy theler
an is licensed under GNU GPL version 3 or later.
wasora is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
-------------------------------------------------------------------------------------------------

This is one of the machines of my lab. When I install PETSc and SLEPc on this
machine I'll try milonga too just to be sure.

Thanks,

Vitor

Em ter, 30 de abr de 2019 às 17:23, Jeremy Theler
<jer...@seamplex.com> escreveu:
> To view this discussion on the web visit https://groups.google.com/a/seamplex.com/d/msgid/wasora/c9f154fcf1e8adb33a8d53a7da37eb7d13bc1009.camel%40seamplex.com.

Jeremy Theler

unread,
Apr 30, 2019, 4:42:22 PM4/30/19
to was...@seamplex.com
Thanks.

What is the output of "wasora -i"?
Does it pass the "make check" tests?
> > https://groups.google.com/a/seamplex.com/d/msgid/wasora/c9f154fcf1e8adb33a8d53a7da37eb7d13bc1009.camel%40seamplex.com

Vitor Vasconcelos

unread,
Apr 30, 2019, 6:38:13 PM4/30/19
to was...@seamplex.com
[cfx@hornet-lx ~]$ wasora -i
wasora v0.6.5-g8932559
wasora’s an advanced suite for optimization & reactor analysis

Last commit date : Tue Apr 30 16:10:28 2019 -0300
Build date : 2019-04-30 17:28:38
Build architecture : linux-gnu x86_64
Builder : cfx@hornet-lx
Compiler : gcc (GCC) 8.3.1 20190223 (Red Hat 8.3.1-2)
Compiler flags : -ggdb
GSL version : 2.4
SUNDIALs version : 3.1.1
Readline version : 7.0

(I chose to have a debug version).

And make check works perfectly fine:
[cfx@hornet-lx wasora]$ make check
Making check in src
make[1]: Entering directory '/home/cfx/software/wasora/src'
./version.sh
depbase=`echo randomline.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"wasora\" -DPACKAGE_TARNAME=\"wasora\"
-DPACKAGE_VERSION=\"v0.6.5-g8932559\" -DPACKAGE_STRING=\"wasora\
v0.6.5-g8932559\" -DPACKAGE_BUGREPORT=\"jer...@seamplex.com\"
-DPACKAGE_URL=\"\" -DPACKAGE=\"wasora\" -DVERSION=\"v0.6.5-g8932559\"
-DHAVE_LIBRT=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SUNDIALS_SUNDIALS_TYPES_H=1
-DHAVE_SUNDIALS_SUNDIALS_LINEARSOLVER_H=1 -DHAVE_IDA_IDA_H=1
-DHAVE_SUNDIALS_SUNDIALS_LINEARSOLVER_H=1 -DHAVE_LIBSUNDIALS_IDA=1
-DHAVE_LIBSUNDIALS_NVECSERIAL=1 -DHAVE_IDA=1 -DIDA_VERSION=3
-DHAVE_LIBREADLINE=1 -DHAVE_READLINE=1 -DHAVE_LIBGSLCBLAS=1
-DHAVE_LIBGSL=1 -DHAVE_GLFIXED_TABLE=1 -I. -ggdb -MT randomline.o
-MD -MP -MF $depbase.Tpo -c -o randomline.o randomline.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo version.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"wasora\" -DPACKAGE_TARNAME=\"wasora\"
-DPACKAGE_VERSION=\"v0.6.5-g8932559\" -DPACKAGE_STRING=\"wasora\
v0.6.5-g8932559\" -DPACKAGE_BUGREPORT=\"jer...@seamplex.com\"
-DPACKAGE_URL=\"\" -DPACKAGE=\"wasora\" -DVERSION=\"v0.6.5-g8932559\"
-DHAVE_LIBRT=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SUNDIALS_SUNDIALS_TYPES_H=1
-DHAVE_SUNDIALS_SUNDIALS_LINEARSOLVER_H=1 -DHAVE_IDA_IDA_H=1
-DHAVE_SUNDIALS_SUNDIALS_LINEARSOLVER_H=1 -DHAVE_LIBSUNDIALS_IDA=1
-DHAVE_LIBSUNDIALS_NVECSERIAL=1 -DHAVE_IDA=1 -DIDA_VERSION=3
-DHAVE_LIBREADLINE=1 -DHAVE_READLINE=1 -DHAVE_LIBGSLCBLAS=1
-DHAVE_LIBGSL=1 -DHAVE_GLFIXED_TABLE=1 -I. -ggdb -MT version.o -MD
-MP -MF $depbase.Tpo -c -o version.o version.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo plugin.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"wasora\" -DPACKAGE_TARNAME=\"wasora\"
-DPACKAGE_VERSION=\"v0.6.5-g8932559\" -DPACKAGE_STRING=\"wasora\
v0.6.5-g8932559\" -DPACKAGE_BUGREPORT=\"jer...@seamplex.com\"
-DPACKAGE_URL=\"\" -DPACKAGE=\"wasora\" -DVERSION=\"v0.6.5-g8932559\"
-DHAVE_LIBRT=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SUNDIALS_SUNDIALS_TYPES_H=1
-DHAVE_SUNDIALS_SUNDIALS_LINEARSOLVER_H=1 -DHAVE_IDA_IDA_H=1
-DHAVE_SUNDIALS_SUNDIALS_LINEARSOLVER_H=1 -DHAVE_LIBSUNDIALS_IDA=1
-DHAVE_LIBSUNDIALS_NVECSERIAL=1 -DHAVE_IDA=1 -DIDA_VERSION=3
-DHAVE_LIBREADLINE=1 -DHAVE_READLINE=1 -DHAVE_LIBGSLCBLAS=1
-DHAVE_LIBGSL=1 -DHAVE_GLFIXED_TABLE=1 -I. -ggdb -MT plugin.o -MD
-MP -MF $depbase.Tpo -c -o plugin.o plugin.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc -ggdb -o wasora ./history.o ./io.o ./interface.o ./print.o
./realtime.o ./algebra.o ./vector.o ./builtinfunctions.o
./randomline.o ./builtinfunctionals.o ./flow.o ./error.o ./shmem.o
./cleanup.o ./parseaux.o ./shell.o ./fit.o ./assignment.o ./version.o
./file.o ./parser.o ./init.o ./matrix.o ./multiminf.o ./function.o
./thirdparty/kdtree.o ./builtinvectorfunctions.o ./multiminfdf.o
./alias.o ./m4.o ./getptr.o ./call.o ./debug.o ./parametric.o ./dae.o
./multiroot.o ./minimize.o ./mesh/element.o ./mesh/findmax.o
./mesh/fem.o ./mesh/fillvector.o ./mesh/neighbors.o ./mesh/point.o
./mesh/integrate.o ./mesh/prism.o ./mesh/vtk.o ./mesh/parser.o
./mesh/init.o ./mesh/geom.o ./mesh/cell.o ./mesh/line.o ./mesh/line3.o
./mesh/interpolate.o ./mesh/tet4.o ./mesh/tet10.o ./mesh/hexa8.o
./mesh/hexa27.o ./mesh/hexa20.o ./mesh/struct.o ./mesh/post.o
./mesh/gmsh.o ./mesh/calculix.o ./mesh/quad4.o ./mesh/quad8.o
./mesh/quad9.o ./mesh/mesh.o ./mesh/gauss.o ./mesh/define.o
./mesh/triang3.o ./mesh/triang6.o ./mesh/quality.o ./plugin.o
./define.o ./wasora.o -lgsl -lgslcblas -lreadline
-lsundials_nvecserial -lsundials_ida -lm -ldl -lpthread -lrt
make[1]: Leaving directory '/home/cfx/software/wasora/src'
make[1]: Entering directory '/home/cfx/software/wasora'
cp -r src/wasora .
rm -f src/version.o src/version.h src/version.lo src/.lib/version.o

Happy engineering hacking with wasora!

make check-TESTS
make[2]: Entering directory '/home/cfx/software/wasora'
make[3]: Entering directory '/home/cfx/software/wasora'
PASS: tests/fibonacci.sh
PASS: tests/pi.sh
PASS: tests/interp1d.sh
PASS: tests/lorenz.sh
============================================================================
Testsuite summary for wasora v0.6.5-g8932559
============================================================================
# TOTAL: 4
# PASS: 4
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/home/cfx/software/wasora'
make[2]: Leaving directory '/home/cfx/software/wasora'
make[1]: Leaving directory '/home/cfx/software/wasora'


Em ter, 30 de abr de 2019 às 17:42, Jeremy Theler
<jer...@seamplex.com> escreveu:
> To view this discussion on the web visit https://groups.google.com/a/seamplex.com/d/msgid/wasora/a09f02b54d1dcc1d48fb0c82aeea768da5f10820.camel%40seamplex.com.

Jeremy Theler

unread,
May 1, 2019, 5:44:22 AM5/1/19
to was...@seamplex.com
Reply all
Reply to author
Forward
0 new messages