Changeset 16102


Ignore:
Timestamp:
09/06/13 14:27:06 (12 years ago)
Author:
Eric.Larour
Message:

CHG: get svn to ignore some files. Fixed some issues with miscast ISSM_MPI_DOUBLE and ISSM_MPI_PDOUBLE types.

Location:
issm/trunk-jpl
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/cython

    • Property svn:ignore set to
      *.tar.gz
      Cython*
  • issm/trunk-jpl/externalpackages/matplotlib/install-macosx64.sh

    r13371 r16102  
    11#/bin/bash
    22set -eu
     3
     4rm -rf src deps
    35
    46export C_INCLUDE_PATH="$C_INCLUDE_PATH:/usr/include/c++/4.2.1"
     
    2325#python -c "import matplotlib; print 'Installed matplotlib', matplotlib.__version__, matplotlib.__file__"
    2426
     27#comments: try exporting this first before calling python setup.py build
     28CFLAGS=-mmacosx-version-min=10.7
     29
    2530#to be tried:  first get freetype and zlib and libpng installed in sudo mode
    2631python setup.py build
  • issm/trunk-jpl/src/c/classes/Elements/Elements.cpp

    r15838 r16102  
    194194                        element->ListResultsInfo(&resultsenums,&resultssizes,&resultstimes,&resultssteps,&numberofresults);
    195195                }
    196                 ISSM_MPI_Bcast(&numberofresults,1,ISSM_MPI_DOUBLE,minrank,IssmComm::GetComm());
     196                ISSM_MPI_Bcast(&numberofresults,1,ISSM_MPI_INT,minrank,IssmComm::GetComm());
    197197
    198198                /*Get out if there is no results. Otherwise broadcast info*/
  • issm/trunk-jpl/src/c/modules/Krigingx/pKrigingx.cpp

    r15838 r16102  
    7575                double *sumpredictions =xNew<double>(n_interp);
    7676                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());
    7979                xDelete<double>(error); error=sumerror;
    8080                xDelete<double>(predictions); predictions=sumpredictions;
     
    9090
    9191                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());
    9393                xDelete<double>(predictions); predictions=sumpredictions;
    9494        }
     
    103103
    104104                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());
    106106                xDelete<double>(predictions); predictions=sumpredictions;
    107107        }
     
    118118
    119119                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());
    121121                xDelete<double>(predictions); predictions=sumpredictions;
    122122        }
  • issm/trunk-jpl/src/c/toolkits/petsc/patches/MatToSerial.cpp

    r15839 r16102  
    7070                        buffer[2]=range;
    7171                        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);
    7373                }
    7474                if (my_rank==0){
    7575                        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);
    7777                }
    7878        }
  • issm/trunk-jpl/src/c/toolkits/petsc/patches/VecToMPISerial.cpp

    r15839 r16102  
    7070                        buffer[2]=range;
    7171                        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);
    7373                }
    7474                if (my_rank==0){
    7575                        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);
    7777                }
    7878        }
     
    8484
    8585        /*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);
    8787
    8888        /*Assign output pointers: */
  • issm/trunk-jpl/src/m/exp/expcoarsen.py

    r16098 r16102  
    4646                        #see whether we keep this point or not
    4747                        distance=npy.sqrt((x[j]-x[j+1])**2+(y[j]-y[j+1])**2)
    48                         print j,distance,numpoints
    4948                        if distance<resolution and j<numpoints-2:   #do not remove last point
    5049                                x=npy.delete(x,j+1,0)
  • issm/trunk-jpl/startup.py

    r16067 r16102  
    3131from plotmodel import plotmodel
    3232
    33 #print("\n  To get started with ISSM, type issmdoc at the command prompt.\n\n")
     33print("\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.