Ignore:
Timestamp:
10/18/12 11:37:32 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: do not error out if triangle is not installed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/TriMeshx/TriMeshx.cpp

    r13622 r13735  
    1111#include "../../EnumDefinitions/EnumDefinitions.h"
    1212/*ANSI_DECLARATORS needed to call triangle library: */
    13 #ifndef ANSI_DECLARATORS
    14 #define ANSI_DECLARATORS
    15 #include "triangle.h"
    16 #undef ANSI_DECLARATORS
    17 #else
    18 #include "triangle.h"
     13#if defined(_HAVE_TRIANGLE_)
     14        #ifndef ANSI_DECLARATORS
     15        #define ANSI_DECLARATORS
     16        #include "triangle.h"
     17        #undef ANSI_DECLARATORS
     18        #else
     19        #include "triangle.h"
     20        #endif
    1921#endif
    2022/*}}}*/
     
    2224void TriMeshx(SeqMat<IssmPDouble>** pindex,SeqVec<IssmPDouble>** px,SeqVec<IssmPDouble>** py,SeqMat<IssmPDouble>** psegments,SeqVec<IssmPDouble>** psegmentmarkerlist,DataSet* domain,DataSet* rifts,double area){
    2325
     26#if !defined(_HAVE_TRIANGLE_)
     27        _error_("triangle has not been installed");
     28#else
    2429        /*indexing: */
    2530        int i,j;
     
    201206        *py=new SeqVec<IssmPDouble>(y,out.numberofpoints);
    202207        *psegmentmarkerlist=new SeqVec<IssmPDouble>(segmentmarkerlist,out.numberofsegments);
     208#endif
    203209}
Note: See TracChangeset for help on using the changeset viewer.