Skip to content

Commit 1631562

Browse files
zhang-alvincekees
authored andcommitted
Better error/help message for gmsh2tetgen (#536)
* DOC: Added a more descriptive error message when no inputs are provided to gmsh2tetgen * DOC: Added an additional string on the length scale parameter in the gmsh2tetgen script
1 parent 1d0ba5f commit 1631562

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/gmsh2tetgen.f

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ program gmsh2tetgen
5757
call getarg(5,perm_z_string)
5858
read (perm_z_string,*) perm(3)
5959
else
60-
write(*,*) 'Wrong input'
60+
write(*,*) 'Input should be: (.mesh) (length scale, optional) '// &
61+
'(x permutation, optional) (y permutation, optional) '// &
62+
'(z permutation, optional)'
63+
write(*,*) 'The length scale scales the vertex coordinates '// &
64+
'in each dimension in the resulting mesh'
65+
write(*,*) 'If using the optional permutation input, all three '//&
66+
'permutations must be specified. The permutations dictate '//&
67+
'how vertices are written out in the resulting mesh. Default '//&
68+
'is [1,2,3]'
6169
stop
6270
endif
6371

0 commit comments

Comments
 (0)