Changeset 28019


Ignore:
Timestamp:
11/17/23 14:10:52 (16 months ago)
Author:
jdquinn
Message:

BUG: Corrected patches

Location:
issm/trunk-jpl/externalpackages/triangle/configs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/triangle/configs/triangle.h.issm.patch

    r28018 r28019  
    1 @@ -101,9 +101,9 @@
    2  /*  `pointlist':  An array of point coordinates.  The first point's x        */
    3  /*    coordinate is at index [0] and its y coordinate at index [1], followed */
    4  /*    by the coordinates of the remaining points.  Each point occupies two   */
    5 -/*    REALs.                                                                 */
    6 +/*    TRI_REALs.                                                             */
    7  /*  `pointattributelist':  An array of point attributes.  Each point's       */
    8 -/*    attributes occupy `numberofpointattributes' REALs.                     */
    9 +/*    attributes occupy `numberofpointattributes' TRI_REALs.                 */
    10  /*  `pointmarkerlist':  An array of point markers; one int per point.        */
    11  /*                                                                           */
    12  /*  `trianglelist':  An array of triangle corners.  The first triangle's     */
    13 @@ -112,9 +112,9 @@
    14  /*    represents a nonlinear element.  Each triangle occupies                */
    15  /*    `numberofcorners' ints.                                                */
    16  /*  `triangleattributelist':  An array of triangle attributes.  Each         */
    17 -/*    triangle's attributes occupy `numberoftriangleattributes' REALs.       */
    18 -/*  `trianglearealist':  An array of triangle area constraints; one REAL per */
    19 -/*    triangle.  Input only.                                                 */
    20 +/*    triangle's attributes occupy `numberoftriangleattributes' TRI_REALs.   */
    21 +/*  `trianglearealist':  An array of triangle area constraints; one TRI_REAL */
    22 +/*    per triangle.  Input only.                                             */
    23  /*  `neighborlist':  An array of triangle neighbors; three ints per          */
    24  /*    triangle.  Output only.                                                */
    25  /*                                                                           */
    26 @@ -125,15 +125,15 @@
    27  /*                                                                           */
    28  /*  `holelist':  An array of holes.  The first hole's x and y coordinates    */
    29  /*    are at indices [0] and [1], followed by the remaining holes.  Two      */
    30 -/*    REALs per hole.  Input only, although the pointer is copied to the     */
    31 +/*    TRI_REALs per hole.  Input only, although the pointer is copied to the */
    32  /*    output structure for your convenience.                                 */
    33  /*                                                                           */
    34  /*  `regionlist':  An array of regional attributes and area constraints.     */
    35  /*    The first constraint's x and y coordinates are at indices [0] and [1], */
    36  /*    followed by the regional attribute at index [2], followed by the       */
    37  /*    maximum area at index [3], followed by the remaining area constraints. */
    38 -/*    Four REALs per area constraint.  Note that each regional attribute is  */
    39 -/*    used only if you select the `A' switch, and each area constraint is    */
    40 +/*    Four TRI_REALs per area constraint.  Note that each regional attribute */
    41 +/*    is used only if you select the `A' switch, and each area constraint is */
    42  /*    used only if you select the `a' switch (with no number following), but */
    43  /*    omitting one of these switches does not change the memory layout.      */
    44  /*    Input only, although the pointer is copied to the output structure for */
    45 @@ -148,7 +148,7 @@
    46  /*    Voronoi diagrams.  The first normal vector's x and y magnitudes are    */
    47  /*    at indices [0] and [1], followed by the remaining vectors.  For each   */
    48  /*    finite edge in a Voronoi diagram, the normal vector written is the     */
    49 -/*    zero vector.  Two REALs per edge.  Output only.                        */
    50 +/*    zero vector.  Two TRI_REALs per edge.  Output only.                    */
    51  /*                                                                           */
    52  /*                                                                           */
    53  /*  Any input fields that Triangle will examine must be initialized.         */
    54 @@ -247,17 +247,35 @@
    55  /*  not used, `numberofsegments' will indicate the number of boundary edges. */
    56  /*                                                                           */
    57  /*****************************************************************************/
     1@@ -259,6 +259,12 @@
     2 #else /* not SINGLE */
     3 #define TRI_REAL double
     4 #endif /* not SINGLE */
    585+
    59 +#pragma once
    60 +
    61 +#ifndef ANSI_DECLARATORS
    62 +#define ANSI_DECLARATORS
    63 +#endif // ANSI_DECLARATORS
    64 +
    65 +#ifdef SINGLE
    66 +#define TRI_REAL float
    67 +#else /* not SINGLE */
    68 +#define TRI_REAL double
    69 +#endif /* not SINGLE */
    70  
    716+/* Patch for ISSM */
    727+#ifndef REAL
     
    749+typedef void VOID;
    7510+#endif /* Patch for ISSM */
    76 +
     11 
    7712 struct triangulateio {
    78 -  REAL *pointlist;                                               /* In / out */
    79 -  REAL *pointattributelist;                                      /* In / out */
    80 +  TRI_REAL *pointlist;                                           /* In / out */
    81 +  TRI_REAL *pointattributelist;                                  /* In / out */
    82    int *pointmarkerlist;                                          /* In / out */
    83    int numberofpoints;                                            /* In / out */
    84    int numberofpointattributes;                                   /* In / out */
    85  
    86    int *trianglelist;                                             /* In / out */
    87 -  REAL *triangleattributelist;                                   /* In / out */
    88 -  REAL *trianglearealist;                                         /* In only */
    89 +  TRI_REAL *triangleattributelist;                               /* In / out */
    90 +  TRI_REAL *trianglearealist;                                     /* In only */
    91    int *neighborlist;                                             /* Out only */
    92    int numberoftriangles;                                         /* In / out */
    93    int numberofcorners;                                           /* In / out */
    94 @@ -267,22 +285,22 @@
    95    int *segmentmarkerlist;                                        /* In / out */
    96    int numberofsegments;                                          /* In / out */
    97  
    98 -  REAL *holelist;                        /* In / pointer to array copied out */
    99 +  TRI_REAL *holelist;                    /* In / pointer to array copied out */
    100    int numberofholes;                                      /* In / copied out */
    101  
    102 -  REAL *regionlist;                      /* In / pointer to array copied out */
    103 +  TRI_REAL *regionlist;                  /* In / pointer to array copied out */
    104    int numberofregions;                                    /* In / copied out */
    105  
    106    int *edgelist;                                                 /* Out only */
    107    int *edgemarkerlist;            /* Not used with Voronoi diagram; out only */
    108 -  REAL *normlist;                /* Used only with Voronoi diagram; out only */
    109 +  TRI_REAL *normlist;            /* Used only with Voronoi diagram; out only */
    110    int numberofedges;                                             /* Out only */
    111  };
    112  
    113  #ifdef ANSI_DECLARATORS
    114  void triangulate(char *, struct triangulateio *, struct triangulateio *,
    115                   struct triangulateio *);
    116 -void trifree(VOID *memptr);
    117 +void trifree(int *memptr);
    118  #else /* not ANSI_DECLARATORS */
    119  void triangulate();
    120  void trifree();
     13   TRI_REAL *pointlist;                                           /* In / out */
  • issm/trunk-jpl/externalpackages/triangle/configs/triangle.h.patch

    r28016 r28019  
    5252 /*                                                                           */
    5353 /*  Any input fields that Triangle will examine must be initialized.         */
    54 @@ -248,16 +248,28 @@
     54@@ -247,17 +247,29 @@
     55 /*  not used, `numberofsegments' will indicate the number of boundary edges. */
    5556 /*                                                                           */
    5657 /*****************************************************************************/
    57  
     58+
    5859+#pragma once
    5960+
     
    6162+#define ANSI_DECLARATORS
    6263+#endif // ANSI_DECLARATORS
    63 +
     64 
    6465+#ifdef SINGLE
    6566+#define TRI_REAL float
Note: See TracChangeset for help on using the changeset viewer.