neperfepx / neper

Polycrystal generation and meshing
http://neper.info
GNU General Public License v3.0
199 stars 53 forks source link

Error in generate images. #463

Closed ee7e7 closed 2 years ago

ee7e7 commented 2 years ago

Describe the bug

Inability to visualize when i use -V code instructions .

To Reproduce

neper -T -n 100 -domain "cube(40,2,20)" -morpho gg
neper -M n100-id1.tess -elttyoe hex
neper -V n100-id1.msh -showeltld all -dataelset3dcol id -print n100-id1-mesh1

========================    N   e   p   e   r    =======================
Info   : A software package for polycrystal generation and meshing.
Info   : Version 3.5.2
Info   : Built with: gsl|muparser|opengjk|openmp|nlopt
Info   : Running on 16 threads.
Info   : <http://neper.info>
Info   : Copyright (C) 2003-2020, and GNU GPL'd, by Romain Quey.
Info   : No initialization file found (`/home/u/.neperrc').
Info   : ---------------------------------------------------------------
Info   : MODULE  -V loaded with arguments:
Info   : [ini file] (none)
Info   : [com line] n100-id1.msh -showeltld all -dataelset3dcol id -print
         n100-id1-mesh1
Info   : ---------------------------------------------------------------
Info   : Loading mesh...
Info   :     [i] Parsing file `n100-id1.msh'...
Info   :     [i] Parsed file `n100-id1.msh'.
Info   : Reconstructing mesh...
Error  : You have discovered a bug in Neper!  Please file an issue at
         https://github.com/rquey/neper/issues.  Thank you.

Aborted
rquey commented 2 years ago

There are typos... You are using -elttyoe instead of -elttype, and -showeltld instead of -showelt1d. The last one is generating the error.