Dear All,<br />
<br />
I tried to run a simple mesh refinement from command line, it diddn't work. <br />
<br />
I first run <br />
gmsh cubic.geo -3 -optimize -saveall<br />
then<br />
gmsh -refine cubic.msh <br />
<br />
<br />
I got error messages like<br />
......<br />
Warning : We don't have a valid parameter on curve 693-694<br />
Warning : We don't have a valid parameter on curve 694-695<br />
Warning : We don't have a valid parameter on curve 695-696<br />
Warning : We don't have a valid parameter on curve 696-697<br />
Warning : We don't have a valid parameter on curve 697-698<br />
Warning : We don't have a valid parameter on curve 698-699<br />
Warning : We don't have a valid parameter on curve 699-700<br />
Warning : We don't have a valid parameter on curve 700-701<br />
Warning : We don't have a valid parameter on curve 701-702<br />
Warning : We don't have a valid parameter on curve 702-703<br />
Warning : We don't have a valid parameter on curve 703-704<br />
Warning : We don't have a valid parameter on curve 704-5<br />
......<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot compute parametric coordinates on discrete face<br />
Error : Cannot evaluate point on discrete face<br />
[0]PETSC ERROR: ------------------------------------------------------------------------<br />
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range<br />
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger<br />
[0]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[0]PETSC ERROR: or try http://valgrind.org on linux or man libgmalloc on Apple to find memory corruption errors<br />
[0]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run <br />
[0]PETSC ERROR: to get more information on the crash.<br />
[0]PETSC ERROR: --------------------- Error Message ------------------------------------<br />
[0]PETSC ERROR: Signal received!<br />
[0]PETSC ERROR: ------------------------------------------------------------------------<br />
[0]PETSC ERROR: Petsc Release Version 3.0.0, Patch 7, Mon Jul 6 11:33:34 CDT 2009<br />
[0]PETSC ERROR: See docs/changes/index.html for recent updates.<br />
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.<br />
[0]PETSC ERROR: See docs/index.html for manual pages.<br />
[0]PETSC ERROR: ------------------------------------------------------------------------<br />
[0]PETSC ERROR: ./gmsh on a umfpack-c named math by luos Thu Jun 23 01:27:04 2011<br />
[0]PETSC ERROR: Libraries linked from /home/geuzaine/src/petsc-3.0.0-p7/umfpack-cxx-opt/lib<br />
[0]PETSC ERROR: Configure run at Mon Jul 27 22:43:37 2009<br />
[0]PETSC ERROR: Configure options --with-debugging=0 --with-scalar-type=complex --with-clanguage=cxx --with-shared=0 --with-mpi=0 --with-x=0 --with-fortran=1 --with-umfpack=1 --download-umfpack=ifneeded<br />
[0]PETSC ERROR: ------------------------------------------------------------------------<br />
[0]PETSC ERROR: User provided function() line 0 in unknown directory unknown file<br />
<br />
Aborted (core dumped)<br />
<br />
<br />
The following is my cubic.geo<br />
<br />
xmin=-300; xmax=-xmin;<br />
ymin=-300; ymax=-ymin;<br />
zmin=-300; zmax=-zmin; <br />
<br />
cl=10; <br />
<br />
Point(1)={xmin,ymin,zmin,cl};<br />
Point(2)={xmax,ymin,zmin,cl};<br />
Point(3)={xmax,ymax,zmin,cl};<br />
Point(4)={xmin,ymax,zmin,cl};<br />
Point(5)={xmin,ymin,zmax,cl};<br />
Point(6)={xmax,ymin,zmax,cl};<br />
Point(7)={xmax,ymax,zmax,cl};<br />
Point(8)={xmin,ymax,zmax,cl}; <br />
Line(1)={1,2};<br />
Line(2)={2,3};<br />
Line(3)={3,4};<br />
Line(4)={4,1};<br />
Line(5)={1,5};<br />
Line(6)={2,6};<br />
Line(7)={3,7};<br />
Line(8)={4,8};<br />
Line(9)={5,6};<br />
Line(10)={6,7};<br />
Line(11)={7,8};<br />
Line(12)={8,5}; <br />
Line Loop(1)={1,2,3,4};<br />
Line Loop(2)={9,10,11,12};<br />
Line Loop(3)={4,5,-12,-8};<br />
Line Loop(4)={2,7,-10,-6};<br />
Line Loop(5)={1,6,-9,-5};<br />
Line Loop(6)={-3,7,11,-8}; <br />
Plane Surface(1)={1};<br />
Plane Surface(2)={2};<br />
Plane Surface(3)={3};<br />
Plane Surface(4)={4};<br />
Plane Surface(5)={5};<br />
Plane Surface(6)={6}; <br />
<br />
<br />
Surface Loop(1)={1,4,2,3,5,6};<br />
Volume(1)={1};<br />
<br />
<br />
<br />
Please let me know what went wrong.<br />
<br />
Thanks.<br />
ST<br />
<br />
<br />