Problem with read_med

30 views
Skip to first unread message

Dzifa Kudawoo

unread,
Nov 9, 2018, 11:24:31 AM11/9/18
to mofem Group
Hi all,,

I try to convert a ".med" file to ".h5m" file but it seems that there is a little trouble with the read_med binary. Indeed, I use salome-meca 2018 which use the med version 3.3.0 by default see below the error.

I also try to the following mesh version: 3.0, 3.1,3.2 but read_med seems to not work.

The command that I use for the meshv3.3 is
$ read_med mesh.med  -meshsets_config config_brick.cfg

Is that correct ?

"""Report of the error
MoFEM version 0.8.15 (MOAB 5.0.2 Petsc Release Version 3.9.3, Jul, 02, 2018 )
git commit id 1b3fae85fdaed6debcf2152d6a62165d46916c79
Reading MED file V3.3.1 using MED library V3.2.0
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/misc/MEDversionedApi3C.c [50] : Cette bibliothèque MED n'est pas capable de lire un fichier MED dont le mineur de la version excède celui de la bibliothèque.
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/misc/MEDversionedApi3C.c [51] : La version demandée est :
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/misc/MEDversionedApi3C.c [51] : _fversionMMR = 331
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/misc/MEDversionedApi3C.c [116] : Impossible d'obtenir une implémentation de :
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/misc/MEDversionedApi3C.c [117] : key = "_MEDmeshInfoByName"
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/misc/MEDversionedApi3C.c [118] : en version :
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/misc/MEDversionedApi3C.c [119] : _fversionMMR = 331
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/misc/MEDversionedApi3C.c [120] : Vérifiez votre fichier .med
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/ci/MEDmeshInfo.c [83] : Erreur d'appel de l'API
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/ci/MEDmeshInfo.c [83] : du maillage
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/ci/MEDmeshInfo.c [84] : meshname = "Mesh_1"
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/ci/MEDmeshInfo.c [84] : _meshpath = "/ENS_MAA/Mesh_1"
/home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/med-3.2.0-wbzkpc5l7g3otnmtlswu6p7il3vqqtfe/med-3.2.0/src/ci/MEDmeshInfo.c [84] : "MEDmeshInfoByName" = "MEDmeshInfoByName"
[0]MoFEM ERROR: --------------------- MoFEM Error Message ---------------------------------------------------
[0]MoFEM ERROR: MoFEM version 0.8.15 (MOAB 5.0.2 Petsc Release Version 3.9.3, Jul, 02, 2018 )
[0]MoFEM ERROR: MoFEM git commit id 1b3fae85fdaed6debcf2152d6a62165d46916c79
[0]MoFEM ERROR: See http://mofem.eng.gla.ac.uk/mofem/html/guidelines_bug_reporting.html for bug reporting.
[0]MoFEM ERROR: See http://mofem.eng.gla.ac.uk/mofem/html/faq_and_bugs.html for trouble shooting.
[0]MoFEM ERROR: Unable to read mesh information
[0]MoFEM ERROR: #1 readMed() line 191 in /tmp/dzifa/spack-stage/spack-stage-grQ0vZ/mofem-cephas/mofem/src/interfaces/impl/MedInterface.cpp
[0]MoFEM ERROR: #2 readMed() line 622 in /tmp/dzifa/spack-stage/spack-stage-grQ0vZ/mofem-cephas/mofem/src/interfaces/impl/MedInterface.cpp
[0]MoFEM ERROR: #3 main() line 50 in /home/dzifa/opt/soft/mofem/install_dir/versUnstable/spack/var/spack/stage/mofem-users-modules-0.8.15-y4m6v2mgj2qptakhsjya2quwe6pccqnz/users-modules-cephas/tools/read_med.cpp
#PETSc Option Table entries:
-meshsets_config config_brick.cfg
#End of PETSc Option Table entries
"""
meshWithSalome..tar.xz

Dzifa Kudawoo

unread,
Nov 9, 2018, 11:35:28 AM11/9/18
to mofem Group
Sorry, I just modify slightly the command that I use:

$ read_med mesh.med

Result:

meshV3.0,1,2 It works and it generated the out.h%m

meshV3.3 It does not work

Lukasz Kaczmraczyk

unread,
Nov 9, 2018, 12:30:40 PM11/9/18
to mofem Group
Hello,

Yes, when med reader when implemented into MoFEM version 3.3 was not available. As you can see here:

Reading MED file V3.3.1 using MED library V3.2.0


Our med lib is V3.2.0. At some point we will need update med library. 

Can you use write to older version of med format or it is critical problem?

Kind regards,
Lukasz

Lukasz Kaczmraczyk

unread,
Nov 9, 2018, 12:35:32 PM11/9/18
to mofem Group
As a note, new version is available as pointed here:

https://www.salome-platform.org/forum/forum_11/527729477

So it should be only a bit of work to update all that new med is automatically downloaded and compiled with mofem. However, you never know what else has been changed.

L.

kud...@gmail.com

unread,
Nov 13, 2018, 2:51:38 PM11/13/18
to mofem Group
 Can you use write to older version of med format or it is critical problem?

YESS. It is not an obstacle for med since I can save the mesh in a previous format. Just it is good to know for the future.


Reply all
Reply to author
Forward
0 new messages