Changeset 4627


Ignore:
Timestamp:
07/15/10 11:40:45 (15 years ago)
Author:
jschierm
Message:

Chaco: Updates for building as a new module.

Location:
issm/trunk/externalpackages/chaco
Files:
10 added
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/chaco/chaco.patch

    r3011 r4627  
    1 Only in /home/jschierm/Libs/Chaco-2.2: chaco_jes_notes.txt
    2 Only in /home/jschierm/Libs/Chaco-2.2: chaco_README.txt
    3 diff -rc src/code/assign/assign_out.c /home/jschierm/Libs/Chaco-2.2/code/assign/assign_out.c
     1diff -rc src/code/assign/assign_out.c new/code/assign/assign_out.c
    42*** src/code/assign/assign_out.c        1995-08-08 14:32:10.000000000 -0700
    5 --- /home/jschierm/Libs/Chaco-2.2/code/assign/assign_out.c      2009-07-30 09:37:34.781348564 -0700
     3--- new/code/assign/assign_out.c        2010-04-06 15:51:09.378194563 -0700
    64***************
    75*** 3,8 ****
     
    1412  static void assign_out_normal(), assign_out_inv();
    1513 
    16 diff -rc src/code/eigen/get_extval.c /home/jschierm/Libs/Chaco-2.2/code/eigen/get_extval.c
     14diff -rc src/code/eigen/get_extval.c new/code/eigen/get_extval.c
    1715*** src/code/eigen/get_extval.c 1995-08-08 14:32:20.000000000 -0700
    18 --- /home/jschierm/Libs/Chaco-2.2/code/eigen/get_extval.c       2009-07-30 09:43:00.511686903 -0700
     16--- new/code/eigen/get_extval.c 2010-04-06 15:51:09.399194588 -0700
    1917***************
    2018*** 4,9 ****
     
    2725  /* Finds first extended eigenpair of system corresponding to
    2826     tridiagonal T using using Rafael's bisection technique. */
    29 diff -rc src/code/klvspiff/matching.c /home/jschierm/Libs/Chaco-2.2/code/klvspiff/matching.c
     27diff -rc src/code/klvspiff/matching.c new/code/klvspiff/matching.c
    3028*** src/code/klvspiff/matching.c        1996-03-11 10:24:25.000000000 -0800
    31 --- /home/jschierm/Libs/Chaco-2.2/code/klvspiff/matching.c      2009-07-30 09:43:11.604702814 -0700
     29--- new/code/klvspiff/matching.c        2010-04-06 15:51:09.424194619 -0700
    3230***************
    3331*** 6,11 ****
     
    4038  #define  TRUE  1
    4139  #define  FALSE 0
    42 diff -rc src/code/main/defs.h /home/jschierm/Libs/Chaco-2.2/code/main/defs.h
     40diff -rc src/code/main/defs.h new/code/main/defs.h
    4341*** src/code/main/defs.h        1995-08-08 14:32:41.000000000 -0700
    44 --- /home/jschierm/Libs/Chaco-2.2/code/main/defs.h      2009-08-25 10:02:57.088970763 -0700
     42--- new/code/main/defs.h        2010-06-15 10:43:54.039227352 -0700
    4543***************
    4644*** 9,11 ****
    47 --- 9,27 ----
     45--- 9,28 ----
    4846  #define       PI      3.141592653589793
    4947  #define       TWOPI   6.283185307179586
     
    6159+     #define realloc mxRealloc
    6260+     #define free mxFree
     61+       #define exit(status) mexErrMsgTxt("exit=" #status)
    6362+
    64 +     #define check_graph chaco_check_graph
    6563+ #endif
     64+ #define check_graph chaco_check_graph
    6665+
    67 Only in /home/jschierm/Libs/Chaco-2.2/code/main: defs_old.h
    68 diff -rc src/code/Makefile /home/jschierm/Libs/Chaco-2.2/code/Makefile
     66diff -rc src/code/Makefile new/code/Makefile
    6967*** src/code/Makefile   1997-10-02 10:23:22.000000000 -0700
    70 --- /home/jschierm/Libs/Chaco-2.2/code/Makefile 2010-02-10 14:05:56.986149785 -0800
    71 ***************
    72 *** 2,8 ****
     68--- new/code/Makefile   2010-06-15 10:35:41.507925761 -0700
     69***************
     70*** 2,9 ****
    7371  DEST=         ${DEST_DIR}/chaco
    7472  CC =          gcc
     
    7876 
    7977  FILES.c=      main/user_params.c main/interface.c main/main.c \
    80 --- 2,13 ----
     78                submain/balance.c submain/divide.c submain/submain.c \
     79--- 2,18 ----
    8180  DEST=         ${DEST_DIR}/chaco
    8281  CC =          gcc
     
    8988! #CFLAGS =     -fPIC -fno-omit-frame-pointer -pthread -fexceptions -DMATLAB
    9089  OFLAGS =      -O2
     90+ #AR =             /usr/ccs/bin/ar rcv   # for solaris 2
     91+ AR =             /usr/bin/ar rcv
     92+ #RANLIB =         /usr/ccs/bin/ranlib   # for solaris 2
     93+ RANLIB =         /usr/bin/ranlib
    9194 
    9295  FILES.c=      main/user_params.c main/interface.c main/main.c \
    93 Only in /home/jschierm/Libs/Chaco-2.2/code: Makefile_old
    94 diff -rc src/code/misc/timing.c /home/jschierm/Libs/Chaco-2.2/code/misc/timing.c
     96                submain/balance.c submain/divide.c submain/submain.c \
     97***************
     98*** 90,97 ****
     99  FILES.o=      $(FILES.c:.c=.o)
     100 
     101 
     102! ${DEST}:      ${FILES.o} Makefile
     103!               ${CC} ${OFLAGS} ${FILES.o} -lm -o ${DEST}
     104 
     105  lint:
     106                lint ${IFLAG} ${FILES.c} -lm
     107--- 99,109 ----
     108  FILES.o=      $(FILES.c:.c=.o)
     109 
     110 
     111! ${DEST}:      ${FILES.c} chaco.a Makefile
     112!               ${CC} ${OFLAGS} chaco.a -lm -o ${DEST}
     113!
     114! chaco.a:      ${FILES.o}
     115!               ${AR} chaco.a ${FILES.o} ; ${RANLIB} chaco.a
     116 
     117  lint:
     118                lint ${IFLAG} ${FILES.c} -lm
     119***************
     120*** 100,106 ****
     121                alint ${IFLAG} ${FILES.c} -lm
     122 
     123  clean:
     124!               rm -f */*.o ${DEST_DIR}/core
     125 
     126  .c.o:
     127                ${CC} -c ${IFLAG} ${CFLAGS} -o $*.o $*.c
     128--- 112,118 ----
     129                alint ${IFLAG} ${FILES.c} -lm
     130 
     131  clean:
     132!               rm -f */*.o ${DEST_DIR}/core
     133 
     134  .c.o:
     135                ${CC} -c ${IFLAG} ${CFLAGS} -o $*.o $*.c
     136diff -rc src/code/misc/timing.c new/code/misc/timing.c
    95137*** src/code/misc/timing.c      1997-01-03 09:10:52.000000000 -0800
    96 --- /home/jschierm/Libs/Chaco-2.2/code/misc/timing.c    2009-07-30 09:43:19.954714766 -0700
     138--- new/code/misc/timing.c      2010-04-06 15:51:09.480194687 -0700
    97139***************
    98140*** 3,8 ****
     
    105147  /* Timing parameters. */
    106148 
    107 diff -rc src/code/util/bail.c /home/jschierm/Libs/Chaco-2.2/code/util/bail.c
     149diff -rc src/code/util/bail.c new/code/util/bail.c
    108150*** src/code/util/bail.c        1995-08-08 14:33:01.000000000 -0700
    109 --- /home/jschierm/Libs/Chaco-2.2/code/util/bail.c      2009-07-30 09:43:24.495721262 -0700
     151--- new/code/util/bail.c        2010-05-27 10:29:34.698534832 -0700
    110152***************
    111153*** 4,9 ****
     
    118160  /* Wrapper for exit() - print message and exit with status code. Exit code
    119161     of 0 indicates normal termination. Exit code of 1 indicates early
    120 diff -rc src/code/util/checkpnt.c /home/jschierm/Libs/Chaco-2.2/code/util/checkpnt.c
     162***************
     163*** 14,20 ****
     164  int       status;
     165  {
     166      extern FILE *Output_File;         /* Output file or NULL */
     167-     void      exit();
     168 
     169      if (msg != NULL && (int) strlen(msg) > 0) {
     170          printf("%s\n", msg);
     171--- 15,20 ----
     172Only in new/code/util: bail_old.c
     173diff -rc src/code/util/checkpnt.c new/code/util/checkpnt.c
    121174*** src/code/util/checkpnt.c    1995-08-08 14:33:01.000000000 -0700
    122 --- /home/jschierm/Libs/Chaco-2.2/code/util/checkpnt.c  2009-07-30 09:43:28.190726549 -0700
     175--- new/code/util/checkpnt.c    2010-04-06 15:51:09.513194728 -0700
    123176***************
    124177*** 4,9 ****
     
    131184  /* Debug break point. */
    132185  void      checkpnt(tag)
    133 diff -rc src/code/util/doubleout.c /home/jschierm/Libs/Chaco-2.2/code/util/doubleout.c
     186diff -rc src/code/util/doubleout.c new/code/util/doubleout.c
    134187*** src/code/util/doubleout.c   1995-08-08 14:33:02.000000000 -0700
    135 --- /home/jschierm/Libs/Chaco-2.2/code/util/doubleout.c 2009-07-30 09:43:34.192735135 -0700
     188--- new/code/util/doubleout.c   2010-04-06 15:51:09.527194745 -0700
    136189***************
    137190*** 3,8 ****
     
    144197  /* Print a double precision number with filtering format to screen. */
    145198  void      doubleout(number, mode)
    146 diff -rc src/code/util/smalloc.c /home/jschierm/Libs/Chaco-2.2/code/util/smalloc.c
     199diff -rc src/code/util/smalloc.c new/code/util/smalloc.c
    147200*** src/code/util/smalloc.c     1996-03-11 10:44:07.000000000 -0800
    148 --- /home/jschierm/Libs/Chaco-2.2/code/util/smalloc.c   2009-07-30 09:43:39.722743047 -0700
     201--- new/code/util/smalloc.c     2010-04-06 15:51:09.542194763 -0700
    149202***************
    150203*** 4,9 ****
     
    157210  static int nmalloc = 0;               /* number of calls to malloc */
    158211  static int nfree = 0;         /* number of calls to free */
    159 diff -rc src/code/util/strout.c /home/jschierm/Libs/Chaco-2.2/code/util/strout.c
     212diff -rc src/code/util/strout.c new/code/util/strout.c
    160213*** src/code/util/strout.c      1995-08-08 14:33:05.000000000 -0700
    161 --- /home/jschierm/Libs/Chaco-2.2/code/util/strout.c    2009-07-30 09:43:47.607754325 -0700
     214--- new/code/util/strout.c      2010-04-06 15:51:09.549194772 -0700
    162215***************
    163216*** 4,9 ****
     
    170223  /* Wrapper for a printf statement with a string as only arg.
    171224     Prints to screen and to output file if there is one. */
     225Only in new/exec: chaco
  • issm/trunk/externalpackages/chaco/chaco_jes_notes.txt

    r2972 r4627  
    8080>
    8181
     826/15/10:
     83
     84- moved check_graph rename outside of MATLAB compiler directive.
     85- created library chaco.a (without MATLAB compiler directive) for Chaco x-layer to link and implemented it in chaco stand-alone link.
     86
  • issm/trunk/externalpackages/chaco/install.sh

    r3072 r4627  
    2323cd src/code
    2424make
    25 # Clean up, so that meshpart creates its own objects for mlchaco
     25# Clean up objects (but not library or executable)
    2626make clean
    2727cd ../..
Note: See TracChangeset for help on using the changeset viewer.