Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] write out and read in (Delauney) triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] write out and read in (Delauney) triangulation


Chronological Thread 
  • From: Monique Teillaud <>
  • To:
  • Subject: Re: [cgal-discuss] write out and read in (Delauney) triangulation
  • Date: Wed, 13 May 2015 14:53:28 +0200

Hi Tom

I am working on MacOS, 10.9.5

Best,
--
Monique Teillaud
http://www.loria.fr/~teillaud/
INRIA Nancy - Grand Est, LORIA
Institut National de Recherche en Informatique et Automatique

Le 13/05/15 14:35, Tom Van Doorsselaere a écrit :
Sorry for that, Monique. I should have checked before asking.

In any case, also your parameters do not work for me:

------------
tom@laptop-atlantis ~/extrasoft/cgal/CGAL-4.6 $ clang++ -v
clang version 3.5.0 (tags/RELEASE_350/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2

tom@laptop-atlantis ~/extrasoft/cgal/CGAL-4.6 $ cmake
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang .
== Setting paths ==
-- Build CGAL from release in directory CGAL-4.6
-- Packagenames: CGAL-4.6
== Setting paths (DONE) ==

== Generate version files ==
-- CGAL_MAJOR_VERSION=4
-- CGAL_MINOR_VERSION=6
-- CGAL_BUGFIX_VERSION=0
-- CGAL_SONAME_VERSION=11
-- CGAL_SOVERSION =11.0.0
-- CGAL_REFERENCE_CACHE_DIR=
-- Building shared libraries
-- Targetting Unix Makefiles
-- Using /usr/bin/clang++ compiler.
-- USING CMake version: 3.1.0
-- System: Linux
== Generate version files (DONE) ==

== Set up flags ==
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING LDFLAGS = ' '
== Set up flags (DONE) ==
... (more output cut) ...

tom@laptop-atlantis ~/data/results/2015/0501_dispersivewaves_ramonoliver
$ clang++ -I$HOME/extrasoft/cgal/CGAL-4.6/include
-L$HOME/extrasoft/cgal/CGAL-4.6/lib -lCGAL -lgmp -o testreadin
testreadinwriteout.cpp

tom@laptop-atlantis ~/data/results/2015/0501_dispersivewaves_ramonoliver
$ LD_LIBRARY_PATH=/home/tom/extrasoft/cgal/CGAL-4.6/lib:$LD_LIBRARY_PATH
ldd ./testreadin
linux-vdso.so.1 (0x00007fff039ae000)
libCGAL.so.11 =>
/home/tom/extrasoft/cgal/CGAL-4.6/lib/libCGAL.so.11 (0x00007fc811156000)
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007fc810edf000)
libstdc++.so.6 =>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libstdc++.so.6 (0x00007fc810bcf000)
libm.so.6 => /lib64/libm.so.6 (0x00007fc8108d3000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc8106bc000)
libc.so.6 => /lib64/libc.so.6 (0x00007fc81031f000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007fc8100c1000)
libboost_thread.so.1.56.0 =>
/usr/lib64/libboost_thread.so.1.56.0 (0x00007fc80fe9d000)
libboost_system.so.1.56.0 =>
/usr/lib64/libboost_system.so.1.56.0 (0x00007fc80fc99000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc80fa7e000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc81137f000)
librt.so.1 => /lib64/librt.so.1 (0x00007fc80f876000)

tom@laptop-atlantis ~/data/results/2015/0501_dispersivewaves_ramonoliver
$ LD_LIBRARY_PATH=/home/tom/extrasoft/cgal/CGAL-4.6/lib:$LD_LIBRARY_PATH
./testreadin --write
writing out triangulationGelukt

tom@laptop-atlantis ~/data/results/2015/0501_dispersivewaves_ramonoliver
$ LD_LIBRARY_PATH=/home/tom/extrasoft/cgal/CGAL-4.6/lib:$LD_LIBRARY_PATH
./testreadin --read
reading in triangulationCGAL error: assertion violation!
Expression : false
File :
/home/tom/extrasoft/cgal/CGAL-4.6/include/CGAL/Triangulation_3.h
Line : 6402
Explanation:
Refer to the bug-reporting instructions at
http://www.cgal.org/bug_report.html
terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: false
File: /home/tom/extrasoft/cgal/CGAL-4.6/include/CGAL/Triangulation_3.h
Line: 6402
Aborted

-------------

So, even if I use exactly the same library and compilers as Monique, my
program does not work on my laptop nor my desktop, but it does for
Monique. Yet again, it throws the same assertion as with other versions
and compilers.

What sort of system did you use, Monique?

Tom



On 05/12/15 16:28, Monique Teillaud wrote:
Le 12/05/15 16:15, Tom Van Doorsselaere a écrit :
I have also used the clang++ compiler and icpc compiler (for CGAL and
the demo program). For both of these compilers I get the same assertion
fault.

Monique, what versions of CGAL and clang compiler did you use?

see the email that I sent yesterday (the inclusion is still visible below)

On 05/12/15 15:39, Tom Van Doorsselaere wrote:
As promised, I have tested the code on two computers, with different
versions of gcc (4.4.7 and 4.9.2) and with different combinations of
flags. However, I always get stuck at the assertion violation.

I have also tried CGAL version 4.3 and 4.0.2.

I have further simplified the example (so it doesn't need gnu++0x
anylonger, and fixing the space Monique pointed out). Now it compiles
with
g++ -frounding-math -lCGAL -lgmp -o testreadin testreadinwriteout.cpp
but the problem persists.

After running
-----------------
./testreadin --write
writing out triangulationGelukt
-----------------
the reading in of the triangulation fails:

-----------------
./testreadin --read
terminate called after throwing an instance of
'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: false
File: /usr/include/CGAL/Triangulation_3.h
Line: 5330
reading in triangulationAborted
-----------------

I will look into compiling CGAL with clang or icc. However, in the end,
I suppose I would like to use gcc, because it is readily available on
most systems.

Can anybody reproduce the assertion using gcc on their computer?

Thanks,

Tom


On 05/12/15 09:33, Tom Van Doorsselaere wrote:
Dear Monique,

Thanks for your e-mail.

This is very interesting indeed. It thus means that
- either it is a compiler issue,
- or I am forgetting a compiler flag or have a flag too much.

I will try this afternoon with different versions of gcc and with a
combination of flags.

Thanks for your input! I had not thought in this direction.

Tom


On 05/11/15 19:14, Monique Teillaud wrote:
Le 08/05/15 17:27, Tom Van Doorsselaere a écrit :
Dear CGAL enthousiasts,

:)
Dear Tom,

I'm building a program for the rendering of emission of solar coronal
models.

This sounds very interesting.

I tested your code on my laptop, with CGAL 4.6, both release and debug
modes, clang 5.0.

I had to add a space line 61 to avoid the consecutive >>
vector<vector<double> > allvar;
Then it compiled.

teillaud@tzitziki:~/CGAL/test >./testreadinwriteout --write
writing out triangulationGelukt
teillaud@tzitziki:~/CGAL/test >./testreadinwriteout --read
reading in triangulationGelukt

If I understand correctly, this is the result that you expect. It
seems
to work like a charm...

Best regards,












Archive powered by MHonArc 2.6.18.

Top of Page