Changeset 11525


Ignore:
Timestamp:
02/24/12 07:43:58 (13 years ago)
Author:
Mathieu Morlighem
Message:

merged trunk and trunk-jpl

Location:
issm/trunk-jpl
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl

  • issm/trunk-jpl/NEWS

    r11236 r11525  
    1 
    21please go to the ISSM website for the latest news:
    32
  • issm/trunk-jpl/README

    r11479 r11525  
    99Jet Propulsion Laboratory
    1010
    11 Eric          Eric Larour (Project Manager)
    12 Mathieu       Mathieu Morlighem (Core Developer, Anisotropic Meshing, Control Methods)
    13 Helene        Helene Seroussi (Core Develper Coupling 2D-3D, Multi-model, full-Stokes)
    14 Nicole        Nicole Schlegel (Developer, Atmospheric Forcing)
    15 Chris         Christopher Borstad (Developer, Rifting/Faulting/Crack Propagation)
    16 Feras         Feras Habbal (Developer, Solver Technologies)
    17 Daria         Daria Halkides (Analyst, Atmospheric Forcing)
    18 Ala           Ala Khazendar (Analyst, Ice Sheet Processes)
    19 
     11Eric    Larour (Project Manager)
     12Mathieu Morlighem (Core Developer, Anisotropic Meshing, Control Methods)
     13Helene  Seroussi (Core Develper Coupling 2D-3D, Multi-model, full-Stokes)
     14Nicole  Schlegel (Developer, Atmospheric Forcing)
     15Chris   Borstad (Developer, Rifting/Faulting/Crack Propagation)
     16Feras   Habbal (Developer, Solver Technologies)
     17Daria   Halkides (Analyst, Atmospheric Forcing)
     18Ala     Khazendar (Analyst, Ice Sheet Processes)
    2019
    2120Email: issm@jpl.nasa.gov
     
    3938modification, are permitted provided that the following conditions are met:
    4039
    41     1. Redistributions of source code must retain the above copyright notice,
    42        this list of conditions and the following disclaimer.
    43     2. Redistributions in binary form must reproduce the above copyright
    44        notice, this list of conditions and the following disclaimer in the
    45        documentation and/or other materials provided with the distribution.
    46     3. Neither the name of the California Institute of Technology (Caltech),
    47        its operating division the Jet Propulsion Laboratory (JPL), the National
    48        Aeronautics and Space Administration (NASA), nor the names of its
    49        contributors may be used to endorse or promote products derived from
    50        this software without specific prior written permission.
     401. Redistributions of source code must retain the above copyright notice,
     41   this list of conditions and the following disclaimer.
     422. Redistributions in binary form must reproduce the above copyright
     43   notice, this list of conditions and the following disclaimer in the
     44   documentation and/or other materials provided with the distribution.
     453. Neither the name of the California Institute of Technology (Caltech),
     46   its operating division the Jet Propulsion Laboratory (JPL), the National
     47   Aeronautics and Space Administration (NASA), nor the names of its
     48   contributors may be used to endorse or promote products derived from
     49   this software without specific prior written permission.
    5150
    5251THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
     
    6160OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    6261------------------------------------------------------------------------------
    63 
  • issm/trunk-jpl/externalpackages/mpich2/install-1.4-macosx32.sh

    r11128 r11525  
    1414#Configure mpich2
    1515cd src
    16 export CFLAGS=" -arch i386"
     16export FFLAGS=" -m32"
     17export CFLAGS=" -m32"
    1718export CXXFLAGS=" -arch i386"
    1819export CPPFLAGS=" -arch i386"
    19 export FFLAGS=" -arch i386"
    2020./configure \
    2121        --prefix="$ISSM_TIER/externalpackages/mpich2/install" \
     
    2323        --enable-sharedlibs=osx-gcc \
    2424        --enable-shared \
    25         --enable-fc="/usr/local/bin/gfortran"
     25        --enable-fc
    2626
    2727#Compile mpich2
  • issm/trunk-jpl/src/c/Container/Elements.cpp

    r11236 r11525  
    180180        int    numberofvertices,numberofelements;
    181181        int    numberofresults,vectorsize;
     182        int    rank;
     183        int    minrank;
    182184
    183185        /*Recover parameters: */
     
    190192                /*No patch here, we prepare vectors*/
    191193
     194                /*Get rank of first cpu that has results*/
     195                if(this->Size()) rank=my_rank;
     196                else rank=num_procs;
     197                MPI_Allreduce (&rank,&minrank,1,MPI_INT,MPI_MIN,MPI_COMM_WORLD);
     198
    192199                /*see what the first element of this partition has in stock (this is common to all partitions)*/
    193                 if(my_rank==0){
    194                         if(this->Size()==0) _error_("Cannot write results because first partition has no element. Maybe too many cpus were requested");
     200                if(my_rank==minrank){
     201                        if(this->Size()==0) _error_("Cannot write results because there is no element??");
    195202                        Element* element=(Element*)this->GetObjectByOffset(0);
    196203                        element->ListResultsInfo(&resultsenums,&resultssizes,&resultstimes,&resultssteps,&numberofresults);
    197204                }
    198                 MPI_Bcast(&numberofresults,1,MPI_DOUBLE,0,MPI_COMM_WORLD);
     205                MPI_Bcast(&numberofresults,1,MPI_DOUBLE,minrank,MPI_COMM_WORLD);
     206
    199207                /*Get out if there is no results. Otherwise broadcast info*/
    200208                if(!numberofresults) return;
    201                 if(my_rank!=0){
     209                if(my_rank!=minrank){
    202210                        resultsenums=(int*)xmalloc(numberofresults*sizeof(int));
    203211                        resultssizes=(int*)xmalloc(numberofresults*sizeof(int));
     
    205213                        resultssteps=(int*)xmalloc(numberofresults*sizeof(int));
    206214                }
    207                 MPI_Bcast(resultsenums,numberofresults,MPI_INT,0,MPI_COMM_WORLD);
    208                 MPI_Bcast(resultssizes,numberofresults,MPI_INT,0,MPI_COMM_WORLD);
    209                 MPI_Bcast(resultstimes,numberofresults,MPI_DOUBLE,0,MPI_COMM_WORLD);
    210                 MPI_Bcast(resultssteps,numberofresults,MPI_INT,0,MPI_COMM_WORLD);
     215                MPI_Bcast(resultsenums,numberofresults,MPI_INT,minrank,MPI_COMM_WORLD);
     216                MPI_Bcast(resultssizes,numberofresults,MPI_INT,minrank,MPI_COMM_WORLD);
     217                MPI_Bcast(resultstimes,numberofresults,MPI_DOUBLE,minrank,MPI_COMM_WORLD);
     218                MPI_Bcast(resultssteps,numberofresults,MPI_INT,minrank,MPI_COMM_WORLD);
    211219
    212220                /*Loop over all results and get nodal vector*/
  • issm/trunk-jpl/src/m/classes/inversion.m

    r11446 r11525  
    116116                        fielddisplay(obj,'control_parameters','parameter where inverse control is carried out; ex: {''FrictionCoefficient''}, or {''MaterialsRheologyBbar''}');
    117117                        fielddisplay(obj,'nsteps','number of optimization searches');
    118                         fielddisplay(obj,'cost_functions','indicate the type of response for each optimization steps');
     118                        fielddisplay(obj,'cost_functions','indicate the type of response for each optimization step');
    119119                        fielddisplay(obj,'cost_functions_coefficients','cost_functions_coefficients applied to the misfit of each vertex and for each control_parameter');
    120120                        fielddisplay(obj,'cost_function_threshold','misfit convergence criterion. Default is 1%, NaN if not applied');
  • issm/trunk-jpl/src/m/utils/OS/issmscpin.m

    r9369 r11525  
    5252                %just use standard unix scp
    5353                %string to copy multiple files using scp:
    54                 string='\{';
    55                 for i=1:numel(packages)-1,
    56                         string=[string packages{i} ','];
     54                if numel(packages)==1,
     55                        string=packages{1};
     56                else
     57                        string='\{';
     58                        for i=1:numel(packages)-1,
     59                                string=[string packages{i} ','];
     60                        end
     61                        string=[string packages{end} '\}'];
    5762                end
    58                 string=[string packages{end} '\}'];
    5963
    6064
Note: See TracChangeset for help on using the changeset viewer.