Changeset 26737


Ignore:
Timestamp:
12/14/21 18:46:39 (3 years ago)
Author:
Mathieu Morlighem
Message:

CHG: better path to libtriangle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/jl/usr/triangle.jl

    r26629 r26737  
    88    numberofpoints :: Cint
    99    numberofpointattributes :: Cint
    10    
     10
    1111    trianglelist :: Ptr{Cint}
    1212    triangleattributelist :: Ptr{Cdouble}
     
    1616    numberofcorners :: Cint
    1717    numberoftriangleattributes :: Cint
    18    
     18
    1919    segmentlist :: Ptr{Cint}
    2020    segmentmarkerlist :: Ptr{Cint}
     
    153153        triangle_switches = "pQzDq30ia"*@sprintf("%lf",area) #replace V by Q to quiet down the logging
    154154        #rc=ccall( (:triangulate,"libtriangle"),
    155         rc=ccall( (:triangulate,"../../externalpackages/triangle/src/libtriangle.dylib"),
     155        rc=ccall( (:triangulate,issmdir()*"/externalpackages/triangle/src/libtriangle.dylib"),
    156156                                Cint, ( Cstring, Ref{CTriangulateIO}, Ref{CTriangulateIO}, Ref{CTriangulateIO}),
    157157                                triangle_switches, Ref(ctio_in), Ref(ctio_out), Ref(vor_out))
     
    161161        triangles = convert(Array{Cint,2},    Base.unsafe_wrap(Array, ctio_out.trianglelist, (3,Int(ctio_out.numberoftriangles)), own=true))' .+1
    162162        segments  = convert(Array{Cint,2},    Base.unsafe_wrap(Array, ctio_out.segmentlist,  (2,Int(ctio_out.numberofsegments)), own=true))' .+1
    163        
     163
    164164        #assign output
    165165        md.mesh = Mesh2dTriangle()
Note: See TracChangeset for help on using the changeset viewer.