Compiling TADM. Here, we outline two ways to compile TADM for your system. The first is more straightforward, but may not work on all systems. The second is more elaborate and general, and may still require some work on your part to get things running. Most of the work is making sure you have PETSc working properly on your machine. When in doubt, consult the the installation page for PETSc: http://www-unix.mcs.anl.gov/petsc/petsc-as/documentation/installation.html. So, the easy way first. 1. Install PETSc: TADM uses PETSc v2.3.0. Download it from: http://www-unix.mcs.anl.gov/petsc/ and unpack it somewhere, eg /usr/local. Then, cd to the directory created after unpacking, (should be petsc-2.3.0) and set the PETSC_DIR environment variable to be that directory. For bash: PETSC_DIR=`pwd`; export PETSC_DIR For tcsh: setenv PETSC_DIR `pwd` Now configure and make PETSC: ./config/configure.py.--download-f-blas-lapack=1 --with-default-optimization=O --with-mpi=0 --with-dynamic=0 --with-clanguage=C++ make all Test your installation with: make test If all goes well, you can proceed to install TAO. Otherwise, look at the more elaborate instructions given below and look at the tips on the PETSc installation page. 2. Install TAO: TADM uses TAO v1.8. Download it from: http://www-unix.mcs.anl.gov/tao and unpack it somewhere, eg /usr/local. Then, cd to the directory created after unpacking, (should be tao-1.8) and set the TAO_DIR environment variable to be that directory. For bash: TAO_DIR=`pwd`; export TAO_DIR For tcsh: setenv TAO_DIR `pwd` Make sure that your shell also has the PETSC_DIR variable set to where PETSc is on your machine. Now make TAO: make all Test your installation with: make tao_testexamples_uni 3. Compile TADM: cd tadm make tadm You might see some warnings, but as long as you don't get errors, you should be set to use TADM. *************************************** Here is the second set of instructions for installing PETSc and TAO in case the easier way didn't work out. This is not guaranteed to work, please consult the PETSc documentation heavily to sort out any issues with the stuff PETSc requires. 1. Install BLAS and LAPACK Download ATLAS source from: http://math-atlas.sourceforge.net/ and unpack in /usr/local/src/ATLAS Configure for your hardware: make make install arch=Linux_PIIISSE1_2 Download LAPACK source: http://www.netlib.org/lapack/lapack.tgz and unpack in /usr/local/src/LAPACK Configure and build for your system: cd LAPACK cp INSTALL/make.inc.LINUX ./make.inc make blaslib make Assemble a complete LAPACK for ATLAS: cd /usr/local/src/ATLAS/lib/Linux_PIIISSE1_2 mkdir tmp cd tmp ar x ../liblapack.a cp /usr/local/src/LAPACK/lapack_LINUX.a ../liblapack.a ar r ../liblapack.a *.o cd .. rm -rf tmp 2. Install mpich Download source from: http://? Configure: ./configure --prefix=/usr/local --with-device=ch_p4 Build and install: make 3. Install petsc Download source and patches from: http://www-unix.mcs.anl.gov/petsc Unpack and install patches: Configure: cd /usr/local/src/petsc-2.3.0 export PETSC_DIR=`pwd` ./config/configure.py --with-default-optimization=O --with-blas-lapack-dir=/usr/local/src/ATLAS/lib/Linux_PIIISSE1_2 --CXXFLAGS_O="-O3 -march=pentium3 -mfpmath=sse" -FFLAGS_O="-O3 -march=pentium3 -mfpmath=sse" --with-mpi=0 --with-dynamic=0 --with-clanguage=C++ make 4. Install tao cd /usr/local/src/tao-1.8 export TAO_DIR=`pwd` make 5. Compile TADM cd tadm make tadm