configure.
If you are running on Linux, the easiest solution is to copy one of my Canned Scripts that call configure.
One optional Trilinos configuration flag significantly impacts the behavior of Sundance:
--enable-teuchos-abc
turns on array bounds checking in Teuchos, which will check every access to Teuchos Array
objects for bounds errors. This is nice for debugging, but results in a serious slowdown of the resulting code and so should probably be disabled in production builds. Typically, I find that Sundance simulators compiled with optimization are about 3-5 times faster in matrix assembly than those compiled with debugging and array bounds checking.
It is possible to turn on debugging and optimization simultaneously, but (a) compilation will be very slow and very memory-intensive, and (b) the resulting debugging information might be useless because optimizations can change sometimes the effective ordering of source lines.
--enable-teuchos --enable-teuchos-extended --enable-teuchos-complex --enable-teuchos-expat
--enable-thyra --enable-epetra-thyra --enable-amesos-thyra --enable-ifpack-thyra --enable-aztecoo-thyra --enable-ml-thyra
--enable-epetra
--enable-epetraext
--enable-ifpack
--enable-ml
--enable-aztecoo
--enable-nox
--enable-amesos --enable-amesos-umfpack