Changeset 16102
- Timestamp:
- 09/06/13 14:27:06 (12 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/cython
-
Property svn:ignore
set to
*.tar.gz
Cython*
-
Property svn:ignore
set to
-
issm/trunk-jpl/externalpackages/matplotlib/install-macosx64.sh
r13371 r16102 1 1 #/bin/bash 2 2 set -eu 3 4 rm -rf src deps 3 5 4 6 export C_INCLUDE_PATH="$C_INCLUDE_PATH:/usr/include/c++/4.2.1" … … 23 25 #python -c "import matplotlib; print 'Installed matplotlib', matplotlib.__version__, matplotlib.__file__" 24 26 27 #comments: try exporting this first before calling python setup.py build 28 CFLAGS=-mmacosx-version-min=10.7 29 25 30 #to be tried: first get freetype and zlib and libpng installed in sudo mode 26 31 python setup.py build -
issm/trunk-jpl/src/c/classes/Elements/Elements.cpp
r15838 r16102 194 194 element->ListResultsInfo(&resultsenums,&resultssizes,&resultstimes,&resultssteps,&numberofresults); 195 195 } 196 ISSM_MPI_Bcast(&numberofresults,1,ISSM_MPI_ DOUBLE,minrank,IssmComm::GetComm());196 ISSM_MPI_Bcast(&numberofresults,1,ISSM_MPI_INT,minrank,IssmComm::GetComm()); 197 197 198 198 /*Get out if there is no results. Otherwise broadcast info*/ -
issm/trunk-jpl/src/c/modules/Krigingx/pKrigingx.cpp
r15838 r16102 75 75 double *sumpredictions =xNew<double>(n_interp); 76 76 double *sumerror =xNew<double>(n_interp); 77 ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_ DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());78 ISSM_MPI_Allreduce(error,sumerror,n_interp,ISSM_MPI_ DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());77 ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_PDOUBLE,ISSM_MPI_SUM,IssmComm::GetComm()); 78 ISSM_MPI_Allreduce(error,sumerror,n_interp,ISSM_MPI_PDOUBLE,ISSM_MPI_SUM,IssmComm::GetComm()); 79 79 xDelete<double>(error); error=sumerror; 80 80 xDelete<double>(predictions); predictions=sumpredictions; … … 90 90 91 91 double *sumpredictions =xNew<double>(n_interp); 92 ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_ DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());92 ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_PDOUBLE,ISSM_MPI_SUM,IssmComm::GetComm()); 93 93 xDelete<double>(predictions); predictions=sumpredictions; 94 94 } … … 103 103 104 104 double *sumpredictions =xNew<double>(n_interp); 105 ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_ DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());105 ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_PDOUBLE,ISSM_MPI_SUM,IssmComm::GetComm()); 106 106 xDelete<double>(predictions); predictions=sumpredictions; 107 107 } … … 118 118 119 119 double *sumpredictions =xNew<double>(n_interp); 120 ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_ DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());120 ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_PDOUBLE,ISSM_MPI_SUM,IssmComm::GetComm()); 121 121 xDelete<double>(predictions); predictions=sumpredictions; 122 122 } -
issm/trunk-jpl/src/c/toolkits/petsc/patches/MatToSerial.cpp
r15839 r16102 70 70 buffer[2]=range; 71 71 ISSM_MPI_Send(buffer,3,ISSM_MPI_INT,0,1,comm); 72 if (range)ISSM_MPI_Send(local_matrix,N*range,ISSM_MPI_ DOUBLE,0,1,comm);72 if (range)ISSM_MPI_Send(local_matrix,N*range,ISSM_MPI_PDOUBLE,0,1,comm); 73 73 } 74 74 if (my_rank==0){ 75 75 ISSM_MPI_Recv(buffer,3,ISSM_MPI_INT,i,1,comm,&status); 76 if (buffer[2])ISSM_MPI_Recv(outmatrix+(buffer[1]*N),N*buffer[2],ISSM_MPI_ DOUBLE,i,1,comm,&status);76 if (buffer[2])ISSM_MPI_Recv(outmatrix+(buffer[1]*N),N*buffer[2],ISSM_MPI_PDOUBLE,i,1,comm,&status); 77 77 } 78 78 } -
issm/trunk-jpl/src/c/toolkits/petsc/patches/VecToMPISerial.cpp
r15839 r16102 70 70 buffer[2]=range; 71 71 ISSM_MPI_Send(buffer,3,ISSM_MPI_INT,0,1,comm); 72 if (range)ISSM_MPI_Send(local_vector,range,ISSM_MPI_ DOUBLE,0,1,comm);72 if (range)ISSM_MPI_Send(local_vector,range,ISSM_MPI_PDOUBLE,0,1,comm); 73 73 } 74 74 if (my_rank==0){ 75 75 ISSM_MPI_Recv(buffer,3,ISSM_MPI_INT,i,1,comm,&status); 76 if (buffer[2])ISSM_MPI_Recv(gathered_vector+buffer[1],buffer[2],ISSM_MPI_ DOUBLE,i,1,comm,&status);76 if (buffer[2])ISSM_MPI_Recv(gathered_vector+buffer[1],buffer[2],ISSM_MPI_PDOUBLE,i,1,comm,&status); 77 77 } 78 78 } … … 84 84 85 85 /*Now, broadcast gathered_vector from node 0 to other nodes: */ 86 ISSM_MPI_Bcast(gathered_vector,vector_size,ISSM_MPI_ DOUBLE,0,comm);86 ISSM_MPI_Bcast(gathered_vector,vector_size,ISSM_MPI_PDOUBLE,0,comm); 87 87 88 88 /*Assign output pointers: */ -
issm/trunk-jpl/src/m/exp/expcoarsen.py
r16098 r16102 46 46 #see whether we keep this point or not 47 47 distance=npy.sqrt((x[j]-x[j+1])**2+(y[j]-y[j+1])**2) 48 print j,distance,numpoints49 48 if distance<resolution and j<numpoints-2: #do not remove last point 50 49 x=npy.delete(x,j+1,0) -
issm/trunk-jpl/startup.py
r16067 r16102 31 31 from plotmodel import plotmodel 32 32 33 #print("\n To get started with ISSM, type issmdoc at the command prompt.\n\n") 33 print("\n ISSM python modules loaded properly. You are now ready to start using ISSM.\n\n");
Note:
See TracChangeset
for help on using the changeset viewer.