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-abcturns on array bounds checking in Teuchos, which will check every access to Teuchos
Arrayobjects 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.Sundance on Linux using the Gnu compilers. You should be able to use these as a starting point for configuring on other platforms.
--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