Changeset 6880
- Timestamp:
- 01/03/11 09:35:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/externalpackages/petsc/install.sh
r6863 r6880 3 3 #Get number of cpus on current platform 4 4 NUMCPUS=$1; 5 6 #available versions7 #2.3.2-p38 #3.0.0-p119 5 10 6 #version of petsc? … … 13 9 14 10 #Some cleanup 15 rm -rf install petsc-$version 11 rm -rf install petsc-$version src 16 12 17 13 #Create src and install directories 18 mkdir install 14 mkdir install src 19 15 20 16 #Untar 21 17 tar -zxvf petsc-$version.tar.gz 22 18 23 #Move petsc to install directory 24 rm -rf install/* 25 mv petsc-$version/* install/ 26 rm -rf petsc-$version 19 #Move petsc to install directory or src depending on the version 20 if [[ $version == "3.1-p7" ]] 21 then 22 mv petsc-$version/* src/ 23 rm -rf petsc-$version 24 cd src 25 else 26 mv petsc-$version/* install/ 27 rm -rf petsc-$version 28 cd install 29 fi 27 30 28 #Configure petsc 29 cd install 31 #configure 30 32 ../configure.sh 31 32 #symlink some missing stuff.33 if [[ $version == "3.0.0-p11" ]]34 then35 cd conf36 ln -s ../$ISSM_ARCH/conf/petscrules petscrules37 ln -s ../$ISSM_ARCH/conf/petscvariables petscvariables38 cd ../39 cd include40 ln -s ../$ISSM_ARCH/include/petscconf.h petscconf.h41 cd ../42 fi43 33 44 34 #Compile petsc and install it
Note:
See TracChangeset
for help on using the changeset viewer.