GithubHelp home page GithubHelp logo

Comments (2)

rquey avatar rquey commented on August 15, 2024

Right now, the best way to get some information on what is going wrong is to recompile neper with debugging on and optimization off:

cmake -DDEVEL_DEBUGGING_FLAG=ON -DDEVEL_OPTIMIZATION=OFF ..
make

and run neper through gdb:

gdb ./neper
(gdb) run -T -checktess name.tess
Starting program: neper/src/build/neper -T -checktess name.tess
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

========================    N   e   p   e   r    =======================
Info   : A software package for polycrystal generation and meshing.
Info   : Version 3.5.2-18
Info   : Built with: gsl|muparser|opengjk|openmp|nlopt|libscotch (full)
Warning: Built with: no optimization.            NOT FOR PRODUCTION USE.
Warning: Built with: debugging compilation flag. NOT FOR PRODUCTION USE.
[New Thread 0x7ffff6110700 (LWP 13875)]
[New Thread 0x7ffff590f700 (LWP 13876)]
[New Thread 0x7ffff510e700 (LWP 13877)]
[New Thread 0x7ffff490d700 (LWP 13878)]
[New Thread 0x7ffff410c700 (LWP 13879)]
[New Thread 0x7ffff390b700 (LWP 13880)]
[New Thread 0x7ffff310a700 (LWP 13881)]
Info   : Running on 8 threads.
Info   : <http://neper.info>
Info   : Copyright (C) 2003-2019, and GNU GPL'd, by Romain Quey.
Info   : Loading initialization file `/home/rquey/.neperrc'...
Info   : ---------------------------------------------------------------
Info   : MODULE  -T loaded with arguments:
Info   : [ini file] -format tess,geo -tesrformat ascii
Info   : [com line] -checktess name.tess
Info   : ---------------------------------------------------------------
Info   : Reading input data...
Info   : Checking tessellation...
Info   :     [i] Parsing file `name.tess'...

Thread 1 "neper" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) where
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff6355801 in __GI_abort () at abort.c:79
#2  0x0000555555786613 in neut_tess_fscanf_face (pTess=0x555555a55e10, file=0x555555a52d30)
    at neper/src/neut/neut_tess/neut_tess_fscanf/neut_tess_fscanf2.c:300
#3  0x000055555572f8f6 in neut_tess_fscanf (file=0x555555a52d30, pTess=0x555555a55e10)
    at neper/src/neut/neut_tess/neut_tess_fscanf/neut_tess_fscanf1.c:29
#4  0x000055555572fae1 in neut_tess_name_fscanf (name=0x555555a5d760 "name.tess", pTess=0x555555a55e10)
    at neper/src/neut/neut_tess/neut_tess_fscanf/neut_tess_fscanf1.c:76
#5  0x00005555555f8390 in neper_t (fargc=5, fargv=0x555555a52510, argc=3, argv=0x7fffffffd7a0)
    atneper/src/neper_t/neper_t.c:62
#6  0x00005555555d4465 in main (argc=4, argv=0x7fffffffd798)
    at neper/src/neper.c:109

Looking at src/neut/neut_tess/neut_tess_fscanf/neut_tess_fscanf2.c, you can see that there is an error while reading the faces.

Going back to name.txt, you can see that, for the first face, you have declared 5 edges but you are providing 6 ids:

 **face
 38
 1 [...]
     5 1 2 3 4 5 6

PS. I'm curious about your tessellation and why you cannot generate it with Neper.

from neper.

theo258 avatar theo258 commented on August 15, 2024

Yes, as you described this debugging is working well. Thank you.

from neper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.