Changeset 4648


Ignore:
Timestamp:
07/19/10 07:42:14 (15 years ago)
Author:
Eric.Larour
Message:

Fixed Chaco build when chaco is not available

Location:
issm/trunk
Files:
4 edited

Legend:

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

    r4645 r4648  
    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 --with-chaco-dir="$ISSM_DIR/externalpackages/chaco/install"
     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/src/c/modules/Chacox/Chacox.cpp

    r4639 r4648  
    2020)
    2121{
     22        #ifdef _HAVE_CHACO_ //only works if Chaco library has been compiled in.
     23       
     24       
    2225        extern int Using_Main;  /* is main routine being called? */
    2326        extern char *PARAMS_FILENAME;   /* name of file with parameter updates */
     
    6164
    6265
    63         #ifdef _HAVE_CHACO_ //only works if Chaco library has been compiled in.
    6466
    6567        if (DEBUG_TRACE > 0) {
  • issm/trunk/src/c/modules/Chacox/input_parse.cpp

    r4639 r4648  
    2525)
    2626{
     27
     28        #ifdef _HAVE_CHACO_ //only works if Chaco library has been compiled in.
     29
    2730        extern int SEQUENCE;    /* sequence instead of partition graph? */
    2831        extern int ARCHITECTURE;        /* 0=> hypercube, d=> d-dimensional mesh */
     
    258261
    259262        return(0);
     263
     264        #endif //#ifdef _HAVE_CHACO_
    260265}
  • issm/trunk/src/c/modules/Chacox/user_params.cpp

    r4639 r4648  
    77/* a more picky compiler (cc) that complains about duplicate global */
    88/* declarations. */
     9
     10#ifdef HAVE_CONFIG_H
     11#include "config.h"
     12#else
     13#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
     14#endif
     15
     16
     17#ifdef _HAVE_CHACO_ //only works if dakota library has been compiled in.
    918
    1019#include "params.h"
     
    141150int       DEBUG_TRACE = 0;      /* Trace main execution path (0..2) */
    142151int       DEBUG_MACH_PARAMS = 0;/* Print computed machine params? (0..1) */
     152
     153
     154#endif //ifdef _HAVE_CHACO_
Note: See TracChangeset for help on using the changeset viewer.