Changeset 11737
- Timestamp:
- 03/19/12 20:53:40 (13 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/adolc/install.sh
r11128 r11737 1 1 #!/bin/bash 2 3 #some issues on macosx64 with ISSM's autoconf. you might want to run native to mac on this. 2 4 3 5 #Some cleanup … … 16 18 #Compile ADOL-C 17 19 cd src 20 18 21 ./configure \ 19 22 --prefix=$ISSM_TIER/externalpackages/adolc/install \ 20 23 --enable-sparse \ 21 24 --enable-docexa \ 22 --enable-addexa 25 --enable-addexa \ 26 --disable-shave 27 23 28 if [ -z $1 ]; then 24 29 make -
issm/trunk-jpl/externalpackages/chaco/chaco.patch
r4707 r11737 241 241 DEST= ${DEST_DIR}/chaco 242 242 CC = gcc 243 IFLAG = -Imain 243 IFLAG = -Imain 244 244 ! #IFLAG = -Imain -I/usr/local/pkgs/matlab-7.6/extern/include 245 245 ! #CFLAGS = -O2 … … 259 259 DEST= ${DEST_DIR}/chaco 260 260 CC = gcc 261 IFLAG = -Imain 261 IFLAG = -Imain -I/usr/include/sys 262 262 ! CFLAGS = -O2 263 263 ! OFLAGS = -O2 -
issm/trunk-jpl/externalpackages/matlab/install.sh
r11649 r11737 1 1 #!/bin/bash 2 3 #Erase symlink4 2 rm -rf install 5 3 6 #Select or create a new simlink 7 ln -s /usr/local/pkgs/matlab-7.6/ install 8 #ln -s /usr/local/matlab704/ install 9 #ln -s /usr/local/matlab711/ install 10 #ln -s /usr/local/matlab712/ install 11 #ln -s /usr/local/pkgs/matlab-7.6/ install 12 13 # Macintosh (OSX) simlink 14 #ln -s /Applications/MATLAB_R2008a/ install 15 #ln -s /Applications/MATLAB_R2009a.app/ install 16 #ln -s /Applications/MATLAB_R2010a.app/ install 17 #ln -s /Applications/MATLAB_R2011b.app/ install 18 #ln -s /Applications/MATLAB*.app/ install 4 ln -s /Applications/MATLAB_R2010a.app/ install -
issm/trunk-jpl/externalpackages/mitgcm/install.sh
r11711 r11737 15 15 16 16 #Download code from server 17 cvs login 17 18 cvs co -P MITgcm 18 19 -
issm/trunk-jpl/src/c/modules/Solverx/Solverx.cpp
r11726 r11737 20 20 21 21 /*output: */ 22 Vector *uf= new Vector();22 Vector *uf=NULL; 23 23 24 24 /*In debugging mode, check that stiffness matrix and load vectors are not NULL (they can be empty)*/ … … 29 29 Vec uf0_vector = NULL; 30 30 Vec df_vector = NULL; 31 Vec uf_vector = NULL; 31 32 if(uf0) uf0_vector = uf0->vector; 32 33 if(df) df_vector = df->vector; … … 38 39 #endif 39 40 40 SolverxPetsc(&uf->vector,Kff->matrix,pf->vector,uf0_vector,df_vector,parameters); 41 if(uf->vector == NULL){ 42 uf->M = 0; 43 } 44 else{ 45 VecGetSize(uf->vector,&uf->M); 46 } 41 SolverxPetsc(&uf_vector,Kff->matrix,pf->vector,uf0_vector,df_vector,parameters); 42 43 /*Create vector out of petsc vector: */ 44 uf=new Vector(uf_vector); 47 45 #else 48 46 #ifdef _HAVE_GSL_ -
issm/trunk-jpl/src/c/objects/Numerics/Vector.cpp
r11734 r11737 79 79 Vector::Vector(Vec petsc_vec){ 80 80 81 /*copy vector*/ 82 VecDuplicate(petsc_vec,&this->vector); 83 VecCopy(petsc_vec,this->vector); 81 if(petsc_vec==NULL){ 82 this->vector=NULL; 83 } 84 else{ 85 /*copy vector*/ 86 VecDuplicate(petsc_vec,&this->vector); 87 VecCopy(petsc_vec,this->vector); 88 } 84 89 85 90 }
Note:
See TracChangeset
for help on using the changeset viewer.