Changeset 4636


Ignore:
Timestamp:
07/16/10 16:24:02 (15 years ago)
Author:
Eric.Larour
Message:

New chaco.h header file. Necessary to handle extern "C" declaration for use in ISSM.
Updated install.sh to copy chaco.h in install/include
Rerun of the chaco patch.

Location:
issm/trunk/externalpackages/chaco
Files:
1 added
2 edited

Legend:

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

    r4635 r4636  
    11diff -rc src/code/assign/assign_out.c old/code/assign/assign_out.c
    2 *** src/code/assign/assign_out.c        2010-07-16 15:20:47.342501437 -0700
     2*** src/code/assign/assign_out.c        2010-07-16 16:13:13.106937437 -0700
    33--- old/code/assign/assign_out.c        1995-08-08 14:32:10.000000000 -0700
    44***************
     
    1313--- 3,8 ----
    1414diff -rc src/code/eigen/get_extval.c old/code/eigen/get_extval.c
    15 *** src/code/eigen/get_extval.c 2010-07-16 15:20:47.344501453 -0700
     15*** src/code/eigen/get_extval.c 2010-07-16 16:13:13.107937445 -0700
    1616--- old/code/eigen/get_extval.c 1995-08-08 14:32:20.000000000 -0700
    1717***************
     
    2626--- 4,9 ----
    2727diff -rc src/code/klvspiff/matching.c old/code/klvspiff/matching.c
    28 *** src/code/klvspiff/matching.c        2010-07-16 15:20:47.347501477 -0700
     28*** src/code/klvspiff/matching.c        2010-07-16 16:13:13.110937469 -0700
    2929--- old/code/klvspiff/matching.c        1996-03-11 10:24:25.000000000 -0800
    3030***************
     
    3939--- 6,11 ----
    4040diff -rc src/code/main/defs.h old/code/main/defs.h
    41 *** src/code/main/defs.h        2010-07-16 15:22:43.944433523 -0700
     41*** src/code/main/defs.h        2010-07-16 16:13:13.112937485 -0700
    4242--- old/code/main/defs.h        1995-08-08 14:32:41.000000000 -0700
    4343***************
    44 *** 1,6 ****
    45 - #ifndef _CHACO_DEFS_H_
    46 - #define _CHACO_DEFS_H_
    47 -
    48   #define       max(A, B)       ((A) > (B) ? (A) : (B))
    49   #define       min(A, B)       ((A) < (B) ? (A) : (B))
    50   #define sign(A)               ((A) <  0  ? -1  :  1)
    51 --- 1,3 ----
    52 ***************
    53 *** 12,32 ****
    54   #define       PI      3.141592653589793
    55   #define       TWOPI   6.283185307179586
    56   #define HALFPI  1.570796326794896
    57 -
    58 - #ifdef MATLAB
    59 -     #include "mat.h"
    60 -     #include "mex.h"
    61 -     #include "matrix.h"
    62 -   
    63 -     #define printf mexPrintf
    64 -     #define fprintf(file,...) (file == stdout || file == stderr ? mexPrintf(__VA_ARGS__) : fprintf(file,__VA_ARGS__))
    65 -     #define malloc mxMalloc
    66 -     #define calloc mxCalloc
    67 -     #define realloc mxRealloc
    68 -     #define free mxFree
    69 -       #define exit(status) mexErrMsgTxt("exit=" #status)
    70 -
    71 - #endif
    72 - #define check_graph chaco_check_graph
    73 -
    74 - #endif //ifndef _CHACO_DEFS_H_
    75 --- 9,11 ----
     44*** 1,39 ****
     45! #ifndef _CHACO_DEFS_H_
     46! #define _CHACO_DEFS_H_
     47!
     48  #define TRUE          1
     49  #define FALSE         0
     50 
     51! #ifndef _HAVE_CHACO_ //protect ISSM compilation. This symbol is defined when we compile ISSM
     52!
     53!       #define max(A, B)       ((A) > (B) ? (A) : (B))
     54!       #define min(A, B)       ((A) < (B) ? (A) : (B))
     55!       #define sign(A)         ((A) <  0  ? -1  :  1)
     56!       #define absval(A)       ((A) <  0  ? -(A): (A))
     57!
     58!       /* Define constants that are needed in various places */
     59!       #define PI      3.141592653589793
     60!       #define TWOPI   6.283185307179586
     61!       #define HALFPI  1.570796326794896
     62!
     63!     #define check_graph chaco_check_graph
     64!
     65!
     66!       #ifdef MATLAB
     67!               #include "mat.h"
     68!               #include "mex.h"
     69!               #include "matrix.h"
     70!         
     71!               #define printf mexPrintf
     72!               #define fprintf(file,...) (file == stdout || file == stderr ? mexPrintf(__VA_ARGS__) : fprintf(file,__VA_ARGS__))
     73!               #define malloc mxMalloc
     74!               #define calloc mxCalloc
     75!               #define realloc mxRealloc
     76!               #define free mxFree
     77!               #define exit(status) mexErrMsgTxt("exit=" #status)
     78!
     79!       #endif
     80!
     81! #endif  //#ifndef _HAVE_CHACO_
     82!
     83! #endif //ifndef _CHACO_DEFS_H_
     84--- 1,11 ----
     85! #define       max(A, B)       ((A) > (B) ? (A) : (B))
     86! #define       min(A, B)       ((A) < (B) ? (A) : (B))
     87! #define sign(A)               ((A) <  0  ? -1  :  1)
     88! #define absval(A)     ((A) <  0  ? -(A): (A))
     89  #define TRUE          1
     90  #define FALSE         0
     91 
     92! /* Define constants that are needed in various places */
     93! #define       PI      3.141592653589793
     94! #define       TWOPI   6.283185307179586
     95! #define HALFPI  1.570796326794896
    7696diff -rc src/code/main/params.h old/code/main/params.h
    77 *** src/code/main/params.h      2010-07-16 15:23:11.519653477 -0700
     97*** src/code/main/params.h      2010-07-16 16:13:13.115937510 -0700
    7898--- old/code/main/params.h      1995-08-08 14:32:43.000000000 -0700
    7999***************
     
    93113--- 1,5 ----
    94114diff -rc src/code/Makefile old/code/Makefile
    95 *** src/code/Makefile   2010-07-16 15:20:47.351501509 -0700
     115*** src/code/Makefile   2010-07-16 16:13:13.117937526 -0700
    96116--- old/code/Makefile   1997-10-02 10:23:22.000000000 -0700
    97117***************
     
    146166                lint ${IFLAG} ${FILES.c} -lm
    147167diff -rc src/code/misc/timing.c old/code/misc/timing.c
    148 *** src/code/misc/timing.c      2010-07-16 15:20:47.354501533 -0700
     168*** src/code/misc/timing.c      2010-07-16 16:13:13.119937542 -0700
    149169--- old/code/misc/timing.c      1997-01-03 09:10:52.000000000 -0800
    150170***************
     
    159179--- 3,8 ----
    160180diff -rc src/code/util/bail.c old/code/util/bail.c
    161 *** src/code/util/bail.c        2010-07-16 15:20:47.356501549 -0700
     181*** src/code/util/bail.c        2010-07-16 16:13:13.121937558 -0700
    162182--- old/code/util/bail.c        1995-08-08 14:33:01.000000000 -0700
    163183***************
     
    182202          printf("%s\n", msg);
    183203diff -rc src/code/util/checkpnt.c old/code/util/checkpnt.c
    184 *** src/code/util/checkpnt.c    2010-07-16 15:20:47.358501565 -0700
     204*** src/code/util/checkpnt.c    2010-07-16 16:13:13.123937575 -0700
    185205--- old/code/util/checkpnt.c    1995-08-08 14:33:01.000000000 -0700
    186206***************
     
    195215--- 4,9 ----
    196216diff -rc src/code/util/doubleout.c old/code/util/doubleout.c
    197 *** src/code/util/doubleout.c   2010-07-16 15:20:47.360501581 -0700
     217*** src/code/util/doubleout.c   2010-07-16 16:13:13.124937583 -0700
    198218--- old/code/util/doubleout.c   1995-08-08 14:33:02.000000000 -0700
    199219***************
     
    208228--- 3,8 ----
    209229diff -rc src/code/util/smalloc.c old/code/util/smalloc.c
    210 *** src/code/util/smalloc.c     2010-07-16 15:20:47.363501605 -0700
     230*** src/code/util/smalloc.c     2010-07-16 16:13:13.126937599 -0700
    211231--- old/code/util/smalloc.c     1996-03-11 10:44:07.000000000 -0800
    212232***************
     
    221241--- 4,9 ----
    222242diff -rc src/code/util/strout.c old/code/util/strout.c
    223 *** src/code/util/strout.c      2010-07-16 15:20:47.365501621 -0700
     243*** src/code/util/strout.c      2010-07-16 16:13:13.128937615 -0700
    224244--- old/code/util/strout.c      1995-08-08 14:33:05.000000000 -0700
    225245***************
  • issm/trunk/externalpackages/chaco/install.sh

    r4635 r4636  
    3737cp -p src/exec/*.graph install
    3838mkdir install/include
    39 cp -p src/code/main/defs.h install/include/chaco_defs.h
    40 cp -p src/code/main/params.h install/include/chaco_params.h
     39cp -p src/code/main/defs.h install/include/defs.h
     40cp -p src/code/main/params.h install/include/params.h
     41cp -p chaco.h install/include/chaco.h
    4142mkdir install/lib
    4243mv src/code/chaco.a install/lib/libchaco.a
Note: See TracChangeset for help on using the changeset viewer.