Subject: CGAL users discussion list
List archive
- From: chrism <>
- To:
- Subject: [cgal-discuss] segfault in Monge_via_jet_fitting
- Date: Tue, 15 Sep 2015 15:47:33 -0700 (PDT)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
Hi,
I am attempting to calculate the mean curvature on a Delaunay2D mesh. For
each face of the mesh, I create a set 18 surrounding points to use with
Monge_via_jet_fitting created as thus:
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Monge_via_jet_fitting<K> CGALMongeViaJet;
typedef CGALMongeViaJet::Monge_form CGALMongeForm;
I have installed LAPACK, am linking against LAPACK in my cmake, and have
enabled LAPACK in CGAL with
#define CGAL_LAPACK_ENABLED
If myPoints is the set of surrounding points of a face (including pts from
that face), I call monge via
std::vector<Point_3> pts;
pts.assign(myPoints.begin(),myPoints.end());
monge_form = monge_fit(pts.begin() , pts.end(), 4,4);
However monge_fit segfaults. I have tracked to l48 of
Linear_algebra_lapack.h
::dgelss(*m, *n, *nrhs, a, *lda, b, *ldb, s, *rcond, rank, info);
I have dumbed the M and Z matrix/vector to disk and matlab can obtain a
solution.
I am on OSX 10.9, CGAL and LAPACK installed from homebrew. Details on these
follows. I would appreciate any guidance on this issue. Thanks.
brew info cgal
cgal: stable 4.6.1 (bottled)
CGAL: Computational Geometry Algorithm Library
http://www.cgal.org/
/usr/local/Cellar/cgal/4.6.1 (2803 files, 34M) *
Built from source with: --with-lapack
From:
https://github.com/Homebrew/homebrew/blob/master/Library/Formula/cgal.rb
==> Dependencies
Build: cmake ✔
Required: boost ✔, gmp ✔, mpfr ✔
==> Options
--c++11
Build using C++11 mode
--imaging
Build ImageIO and QT compoments of CGAL
--with-eigen3
Build with Eigen3 support
--with-lapack
Build with LAPACK support
brew info lapack
homebrew/dupes/lapack: stable 3.5.0 (bottled)
http://www.netlib.org/lapack/
This formula is keg-only.
OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
/usr/local/Cellar/lapack/3.5.0 (3851 files, 29M)
Poured from bottle
From: https://github.com/homebrew/homebrew-dupes/blob/master/lapack.rb
==> Dependencies
Build: cmake ✔
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/lapack/lib
CPPFLAGS: -I/usr/local/opt/lapack/include
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/segfault-in-Monge-via-jet-fitting-tp4661142.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] segfault in Monge_via_jet_fitting, chrism, 09/16/2015
- Re: [cgal-discuss] segfault in Monge_via_jet_fitting, Simon Giraudot, 09/17/2015
- Re: [cgal-discuss] segfault in Monge_via_jet_fitting, Chris Marsh, 09/17/2015
- Re: [cgal-discuss] segfault in Monge_via_jet_fitting, Simon Giraudot, 09/17/2015
Archive powered by MHonArc 2.6.18.