Changeset 11737


Ignore:
Timestamp:
03/19/12 20:53:40 (13 years ago)
Author:
Eric.Larour
Message:

Vector object does not have an M size.

Location:
issm/trunk-jpl
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/adolc/install.sh

    r11128 r11737  
    11#!/bin/bash
     2
     3#some issues on macosx64 with ISSM's autoconf. you might want to run native to mac on this.
    24
    35#Some cleanup
     
    1618#Compile ADOL-C
    1719cd src
     20
    1821./configure \
    1922        --prefix=$ISSM_TIER/externalpackages/adolc/install \
    2023        --enable-sparse \
    2124        --enable-docexa \
    22         --enable-addexa         
     25        --enable-addexa \
     26        --disable-shave
     27
    2328if [ -z $1 ]; then
    2429        make
  • issm/trunk-jpl/externalpackages/chaco/chaco.patch

    r4707 r11737  
    241241  DEST=         ${DEST_DIR}/chaco
    242242  CC =          gcc
    243   IFLAG =               -Imain
     243  IFLAG =               -Imain 
    244244! #IFLAG =              -Imain -I/usr/local/pkgs/matlab-7.6/extern/include
    245245! #CFLAGS =     -O2
     
    259259  DEST=         ${DEST_DIR}/chaco
    260260  CC =          gcc
    261   IFLAG =               -Imain
     261  IFLAG =               -Imain -I/usr/include/sys
    262262! CFLAGS =      -O2
    263263! OFLAGS =      -O2
  • issm/trunk-jpl/externalpackages/matlab/install.sh

    r11649 r11737  
    11#!/bin/bash
    2 
    3 #Erase symlink
    42rm -rf install
    53
    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
     4ln -s /Applications/MATLAB_R2010a.app/ install
  • issm/trunk-jpl/externalpackages/mitgcm/install.sh

    r11711 r11737  
    1515
    1616#Download code from server
     17cvs login
    1718cvs co -P MITgcm
    1819
  • issm/trunk-jpl/src/c/modules/Solverx/Solverx.cpp

    r11726 r11737  
    2020
    2121        /*output: */
    22         Vector *uf=new Vector();
     22        Vector *uf=NULL;
    2323
    2424        /*In debugging mode, check that stiffness matrix and load vectors are not NULL (they can be empty)*/
     
    2929                Vec uf0_vector = NULL;
    3030                Vec df_vector  = NULL;
     31                Vec uf_vector  = NULL;
    3132                if(uf0) uf0_vector = uf0->vector;
    3233                if(df)  df_vector  = df->vector;
     
    3839                #endif
    3940
    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);
    4745        #else
    4846                #ifdef _HAVE_GSL_
  • issm/trunk-jpl/src/c/objects/Numerics/Vector.cpp

    r11734 r11737  
    7979Vector::Vector(Vec petsc_vec){
    8080
    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        }
    8489
    8590}
Note: See TracChangeset for help on using the changeset viewer.