Changeset 3592


Ignore:
Timestamp:
04/21/10 11:48:53 (15 years ago)
Author:
Eric.Larour
Message:

Better matlab installation.
New Issm types, start using them, to smoothly transition towards 64 bit integers!

Location:
issm/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/configs/linux64/linux64.sh.petsc2

    r3223 r3592  
    11#!/bin/sh
    22
    3 ./configure --prefix=$ISSM_DIR --with-matlab-dir=$MATLAB_DIR --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install --with-metis-dir=$ISSM_DIR/externalpackages/metis/install --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install --with-mpi-include=$ISSM_DIR/externalpackages/mpich2/install/include  --with-mpi-lib="-L$ISSM_DIR/externalpackages/mpich2/install/lib/ -lmpich" --with-petsc-arch=$ISSM_ARCH --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install/externalpackages/fblaslapack/$ISSM_ARCH --with-plapack-lib="-L$ISSM_DIR/externalpackages/petsc/install/externalpackages/PLAPACKR32-hg/$ISSM_ARCH -lPLAPACK" --with-plapack-include="-I$ISSM_DIR/externalpackages/petsc/install/externalpackages/PLAPACKR32-hg/$ISSM_ARCH/INCLUDE" --with-blacs-dir=$ISSM_DIR/externalpackages/petsc/install/externalpackages/blacs-dev/$ISSM_ARCH --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/externalpackages/SCALAPACK/$ISSM_ARCH --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install/externalpackages/MUMPS_4.6.3/$ISSM_ARCH --with-fortran-lib="-L/usr/lib/gcc/x86_64-redhat-linux/4.1.1/ -lgfortran" --with-graphics-lib=/usr/lib64/libX11.so --with-cxxoptflags="-march=opteron -O2" --with-numthreads=32 --with-petsc-version=2
     3./configure --prefix=$ISSM_DIR --with-matlab-dir=$MATLAB_DIR --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install --with-metis-dir=$ISSM_DIR/externalpackages/metis/install --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install --with-mpi-include=$ISSM_DIR/externalpackages/mpich2/install/include  --with-mpi-lib="-L$ISSM_DIR/externalpackages/mpich2/install/lib/ -lmpich" --with-petsc-arch=$ISSM_ARCH --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install/externalpackages/fblaslapack/$ISSM_ARCH --with-plapack-lib="-L$ISSM_DIR/externalpackages/petsc/install/externalpackages/PLAPACKR32-hg/$ISSM_ARCH -lPLAPACK" --with-plapack-include="-I$ISSM_DIR/externalpackages/petsc/install/externalpackages/PLAPACKR32-hg/$ISSM_ARCH/INCLUDE" --with-blacs-dir=$ISSM_DIR/externalpackages/petsc/install/externalpackages/blacs-dev/$ISSM_ARCH --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/externalpackages/SCALAPACK/$ISSM_ARCH --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install/externalpackages/MUMPS_4.6.3/$ISSM_ARCH --with-fortran-lib="-L/usr/lib/gcc/x86_64-redhat-linux/4.1.1/ -lgfortran" --with-graphics-lib=/usr/lib64/libX11.so --with-cxxoptflags="-march=opteron -O2" --with-numthreads=32 --with-petsc-version=2 
  • issm/trunk/etc/environment.csh

    r3082 r3592  
    1717#MATLAB
    1818setenv MATLAB_DIR {$MATLAB_DIR}
    19 setenv PATH {$PATH}:{$MATLAB_DIR}/bin
     19setenv MATLAB_VERSION {$MATLAB_VERSION}
     20setenv PATH {$MATLAB_DIR}/bin:{$PATH}
    2021setenv LD_LIBRARY_PATH {$LD_LIBRARY_PATH}:$MATLAB_DIR/lib
    2122
  • issm/trunk/etc/environment.sh

    r3383 r3592  
    1717#MATLAB
    1818export MATLAB_DIR
    19 PATH="$PATH:$MATLAB_DIR/bin"
     19export MATLAB_VERSION
     20PATH="$MATLAB_DIR/bin:$PATH" #take precedence over /usr/local/bin/matlab
    2021export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MATLAB_DIR/lib"
    2122export LD_RUN_PATH="$LD_RUN_PATH:$MATLAB_DIR/lib"
  • issm/trunk/externalpackages/matlab/install.sh

    r3131 r3592  
    11#!/bin/bash
     2
     3#Matlab version: used by Petsc to detect some weird behaviour starting at version 7.6 (all blas and lapack prototypes changed! damn them!)
     4MATLAB_VERSION=7.8
    25
    36#Erase symlink
     
    58
    69#symlink matlab to root matlab
    7 ln -s /usr/local/pkgs/matlab-7.6/ install
     10ln -s /usr/local/pkgs/matlab-$MATLAB_VERSION/ install
  • issm/trunk/m4/issm_options.m4

    r3223 r3592  
    710710        AC_SUBST([MULTITHREADINGLIB])
    711711        AC_MSG_RESULT($NUMTHREADS_VALUE)
    712         dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%numthreads build-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     712        dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%numthreads build-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     713       
     714        dnl dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%64 bit indices%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     715        AC_ARG_WITH([64bit-indices],
     716                          AS_HELP_STRING([--with-64bit-indices = bool], [use 64 bit integers, default 0, ex: --with-64bit-indices=1]),
     717                         [USE_64BIT_INDICES=$withval],[USE_64BIT_INDICES=0])
     718        AC_MSG_CHECKING(for 64 bit indices )
     719
     720
     721        if test "$USE_64BIT_INDICES" == "1"; then
     722        AC_DEFINE([ISSM_USE_64BIT_INDICES],[1],[with 64 bits indices])
     723        else
     724        AC_DEFINE([ISSM_USE_64BIT_INDICES],[0],[with 64 bits indices])
     725        fi
     726        AC_MSG_RESULT($USE_64BIT_INDICES)
     727        dnl dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%64 bit indices end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     728
    713729
    714730])
  • issm/trunk/src/c/include/types.h

    r3263 r3592  
    55#ifndef _TYPES_H_
    66#define  _TYPES_H_
     7
     8
     9#ifdef HAVE_CONFIG_H
     10        #include "config.h"
     11#else
     12#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
     13#endif
     14
    715
    816/*Define abstract type for I/O: */
     
    1725enum param_type { STRING, INTEGER, STRINGARRAY, DOUBLE, DOUBLEVEC, DOUBLEMAT, PETSCVEC, PETSCMAT };
    1826
     27/*here are our abstracted types: inspired on petsc */
     28#if defined(ISSM_USE_64BIT_INDICES)
     29typedef long long IssmInt;
     30#define MPIU_INT MPI_LONG_LONG_INT
     31#else
     32typedef int IssmInt;
     33#define MPIU_INT MPI_INT
     34#endif 
     35
     36typedef double IssmDouble;
     37typedef bool IssmBool;
     38
     39
    1940#endif //ifndef _TYPES_H_
  • issm/trunk/src/c/parallel/diagnostic_core.cpp

    r3567 r3592  
    8181        fem_ds->FindParam(&numberofdofspernode_ds,"numberofdofspernode");
    8282
    83         //for qmu analysis, be sure the velocity input we are starting from  is the one in the parameters: */
     83        //for qmu analysis, be sure the velocity input we are starting from  is the one in the parameters, otherwise,
     84        //we will create sensitivities just because we are starting from different velocities each time (and if tolerance is
     85        //not set tight enough): */
    8486        if(qmu_analysis){
    8587                model->FindParam(&u_g_initial,NULL,NULL,"u_g",DiagnosticAnalysisEnum,HorizAnalysisEnum);
Note: See TracChangeset for help on using the changeset viewer.