Changeset 3059


Ignore:
Timestamp:
02/19/10 15:40:24 (15 years ago)
Author:
jschierm
Message:

Chaco: implement environment variables in install.sh and Makefile.

Location:
issm/trunk/externalpackages/meshpart
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/meshpart/install.sh

    r3012 r3059  
    1414tar -xvzf metismex-4.0.tar.gz -C meshpart/metis
    1515#proto.h in metis library is not patched, at least for metismex, so create a local version
    16 cp ../metis/install/Lib/proto.h meshpart/metis
     16cp ${METIS_DIR}/Lib/proto.h meshpart/metis
    1717
    1818# Move meshpart to src directory
     
    3030#proto.h in metis library is not patched, at least for metismex, so link with local version
    3131#mex -I../../../metis/install/Lib -L../../../metis/install -lmetis -largeArrayDims metismex.c
    32 mex -I. -I../../../metis/install/Lib -L../../../metis/install -lmetis -largeArrayDims metismex.c
     32#mex -I. -I../../../metis/install/Lib -L../../../metis/install -lmetis -largeArrayDims metismex.c
     33${MATLAB_DIR}/bin/mex -I. -I${METIS_DIR}/Lib -L${METIS_DIR} -lmetis -largeArrayDims metismex.c
    3334mv metismex.mex* ..
    3435cd ../..
  • issm/trunk/externalpackages/meshpart/meshpart.patch

    r3012 r3059  
    1 Only in /home/jschierm/Libs/meshpart: adjacency_matrix.m
    2 diff -rc src/chaco/Makefile /home/jschierm/Libs/meshpart/chaco/Makefile
     1diff -rc src/chaco/Makefile new/chaco/Makefile
    32*** src/chaco/Makefile  1998-07-06 13:08:26.000000000 -0700
    4 --- /home/jschierm/Libs/meshpart/chaco/Makefile 2010-02-10 15:20:30.140413675 -0800
     3--- new/chaco/Makefile  2010-02-19 15:09:04.165652259 -0800
    54***************
    65*** 24,51 ****
     
    3332  CHFILES.c=    ${CHACO}/main/interface.c \
    3433                ${CHACO}/main/main.c \
    35 --- 24,58 ----
     34--- 24,59 ----
    3635  # See file ../copyright.m for complete copyright and licensing notice.
    3736 
    3837  #MATLAB =        /import/matlab
    3938! #MATLAB =        /usr/local/libexec/matlab
    40 ! MATLAB =        /usr/local/pkgs/matlab-7.6
     39! #MATLAB =        /usr/local/pkgs/matlab-7.6
     40! MATLAB =        ${MATLAB_DIR}
    4141 
    4242  #CHACO =         /project/sparse/chaco/version2/code
     
    7171***************
    7272*** 53,64 ****
    73 --- 60,73 ----
     73--- 61,74 ----
    7474                ${CHACO}/submain/divide.c \
    7575                ${CHACO}/submain/submain.c \
     
    111111                ${CHACO}/connect/connected.c \
    112112                ${CHACO}/connect/find_edges.c \
    113 --- 98,123 ----
     113--- 99,124 ----
    114114                ${CHACO}/klvspiff/coarsen_klv.c \
    115115                ${CHACO}/klvspiff/countup_vtx_sep.c \
     
    140140***************
    141141*** 232,237 ****
    142 --- 244,250 ----
     142--- 245,251 ----
    143143                ${CHACO}/util/normalize.c \
    144144                ${CHACO}/util/mergesort.c \
     
    150150***************
    151151*** 243,248 ****
    152 --- 256,263 ----
     152--- 257,264 ----
    153153                ${CHACO}/util/vecout.c \
    154154                ${CHACO}/util/vecran.c \
     
    169169 
    170170  chaco.a:        ${CHFILES.o}
    171 --- 267,278 ----
     171--- 268,279 ----
    172172  #             ${MATLAB}/bin/cmex CC='gcc -G' -lm ${OFLAGS} ${MLFILES.o} chaco.a; \
    173173  #                 mv mlchaco.mex* ${DEST_DIR}
     
    178178+
    179179  mlchaco:      ${MLFILES.c} chaco.a Makefile
    180 !               mex -output mlchaco -largeArrayDims -DMATLAB ${MLFILES.c} chaco.a -I${CHACO}/main
     180!               ${MATLAB}/bin/mex -output mlchaco -largeArrayDims -DMATLAB ${MLFILES.c} chaco.a -I${CHACO}/main
    181181                mv mlchaco.mex* ${DEST_DIR}
    182182 
    183183  chaco.a:        ${CHFILES.o}
    184 Only in /home/jschierm/Libs/meshpart/chaco: Makefile_old
    185 Only in /home/jschierm/Libs/meshpart/chaco: Makefile_old2
    186 diff -rc src/chaco/mlchaco.c /home/jschierm/Libs/meshpart/chaco/mlchaco.c
     184diff -rc src/chaco/mlchaco.c new/chaco/mlchaco.c
    187185*** src/chaco/mlchaco.c 1999-07-23 12:19:09.000000000 -0700
    188 --- /home/jschierm/Libs/meshpart/chaco/mlchaco.c        2009-07-29 15:22:23.507525662 -0700
     186--- new/chaco/mlchaco.c 2010-02-10 15:31:43.903181816 -0800
    189187***************
    190188*** 32,37 ****
     
    335333      if (ewgts != NULL) mxFree((char *) ewgts);
    336334      if (x != NULL) mxFree((char *) x);
    337 Only in /home/jschierm/Libs/meshpart/chaco: mlchaco_jes_notes.txt
    338 Only in /home/jschierm/Libs/meshpart/chaco: mlchaco_old.c
    339 Only in /home/jschierm/Libs/meshpart/chaco: mlchaco_README.txt
    340 diff -rc src/chaco.m /home/jschierm/Libs/meshpart/chaco.m
     335diff -rc src/chaco.m new/chaco.m
    341336*** src/chaco.m 1999-07-23 12:13:26.000000000 -0700
    342 --- /home/jschierm/Libs/meshpart/chaco.m        2009-07-29 14:58:33.872207593 -0700
     337--- new/chaco.m 2010-02-10 15:31:43.909181823 -0800
    343338***************
    344339*** 142,148 ****
     
    359354  else
    360355      vwgts = [];
    361 Only in /home/jschierm/Libs/meshpart: chaco_old.m
    362 diff -rc src/fiedler.m /home/jschierm/Libs/meshpart/fiedler.m
     356diff -rc src/fiedler.m new/fiedler.m
    363357*** src/fiedler.m       1996-02-23 10:03:20.000000000 -0800
    364 --- /home/jschierm/Libs/meshpart/fiedler.m      2009-07-13 14:25:59.000000000 -0700
     358--- new/fiedler.m       2010-02-10 15:31:43.914181829 -0800
    365359***************
    366360*** 58,64 ****
     
    384378      R = chol(L-shift*I);
    385379      Rt = R';
    386 Only in /home/jschierm/Libs/meshpart: fiedler_old.m
    387 diff -rc src/meshdemo.m /home/jschierm/Libs/meshpart/meshdemo.m
     380diff -rc src/meshdemo.m new/meshdemo.m
    388381*** src/meshdemo.m      2002-02-08 07:38:21.000000000 -0800
    389 --- /home/jschierm/Libs/meshpart/meshdemo.m     2009-07-15 15:43:09.303210082 -0700
     382--- new/meshdemo.m      2010-02-10 15:31:43.920181835 -0800
    390383***************
    391384*** 97,103 ****
     
    405398  disp(' ');
    406399  disp(' Next is multilevel Kernighan-Lin partitioning, which first partitions');
    407 Only in /home/jschierm/Libs/meshpart: meshdemo_old.m
    408 Only in /home/jschierm/Libs/meshpart: meshpart_notes_jes.txt
    409 Only in /home/jschierm/Libs/meshpart: meshpart_README.txt
    410 diff -rc src/metis/metismex.c /home/jschierm/Libs/meshpart/metis/metismex.c
     400diff -rc src/metis/metismex.c new/metis/metismex.c
    411401*** src/metis/metismex.c        2009-07-13 14:37:08.000000000 -0700
    412 --- /home/jschierm/Libs/meshpart/metis/metismex.c       2009-07-14 15:07:30.187491787 -0700
     402--- new/metis/metismex.c        2010-02-10 15:31:43.926181842 -0800
    413403***************
    414404*** 92,98 ****
     
    430420 
    431421      /* Find MATLAB's matrix structure */
    432 diff -rc src/metis/proto.h /home/jschierm/Libs/meshpart/metis/proto.h
     422Only in new/metis: metismex.mexa64
     423diff -rc src/metis/proto.h new/metis/proto.h
    433424*** src/metis/proto.h   2009-09-22 17:24:29.402085000 -0700
    434 --- /home/jschierm/Libs/meshpart/metis/proto.h  2010-02-10 14:28:26.558752000 -0800
     425--- new/metis/proto.h   2010-02-10 15:31:43.932181849 -0800
    435426***************
    436427*** 230,237 ****
     
    472463 
    473464 
    474 Only in src: metismex.dll
    475 Only in src: metismex.m
    476 Only in /home/jschierm/Libs/meshpart: metismex.mexa64
    477 Only in src: metismex.mexsol
    478 Only in /home/jschierm/Libs/meshpart: metismex_notes_jes.txt
    479 Only in /home/jschierm/Libs/meshpart: metismex_old.c
    480 Only in /home/jschierm/Libs/meshpart: metismex_README.txt
    481 Only in /home/jschierm/Libs/meshpart: mlchaco.mexa64
    482 Only in /home/jschierm/Libs/meshpart: User_Params
     465Only in new: metismex.mexa64
     466Only in new: mlchaco.mexa64
Note: See TracChangeset for help on using the changeset viewer.