Skip to content

Commit 6a15df4

Browse files
committed
Add error message for -format msh4
-format msh4 is not available with hex meshes. Added clean error message.
1 parent c75f920 commit 6a15df4

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

VERSIONS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
New in 4.5.1-3 (02 Nov 2022):
1+
New in 4.5.1-4 (02 Nov 2022):
22
- documentation: made minor improvements.
33
- fixed truncated statistical distributions (from and to).
44

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import sphinx_rtd_theme
1212

1313
project = u'Neper'
14-
version = u'4.5.1-3'
15-
release = u'4.5.1-3'
14+
version = u'4.5.1-4'
15+
release = u'4.5.1-4'
1616
author = u'Romain Quey'
1717
copyright = u'Romain Quey'
1818
language = 'en'

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if(POLICY CMP0077)
77
cmake_policy(SET CMP0077 NEW)
88
endif()
99

10-
set(NEPER_VERSION \"4.5.1-3\")
10+
set(NEPER_VERSION \"4.5.1-4\")
1111
project(neper)
1212

1313
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8.1)

src/neut/neut_mesh/neut_mesh_fprintf/neut_mesh_fprintf_msh/neut_mesh_fprintf_msh1.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ neut_mesh_fprintf_msh (FILE * file, char *dim, struct TESS Tess,
3737
{
3838
neut_mesh_fprintf_msh_entities (file, mode, Tess, Nodes, Mesh0D, Mesh1D, Mesh2D, Mesh3D);
3939

40+
if (!ut_string_strcmp (Mesh2D.EltType, "quad")
41+
|| !ut_string_strcmp (Mesh3D.EltType, "quad"))
42+
ut_print_message (2, 3, "`-format msh4` not available with `-elt quad|hex`.\n");
43+
4044
neut_mesh_fprintf_msh_nodes_v4 (file, mode, Tess, Nodes, Mesh0D, Mesh1D, Mesh2D, Mesh3D);
4145

4246
neut_mesh_fprintf_msh_elts_v4 (file, mode, Tess, Mesh0D, Mesh1D, Mesh2D,

0 commit comments

Comments
 (0)