Compare commits
No commits in common. "rawhide" and "f32" have entirely different histories.
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,4 +5,3 @@
|
||||
/med-3.2.1.tar.gz
|
||||
/med-3.3.1.tar.gz
|
||||
/med-4.0.0.tar.gz
|
||||
/med-4.1.0.tar.gz
|
||||
|
@ -1,446 +0,0 @@
|
||||
diff -rupN med-4.1.0/config/cmake_files/medMacros.cmake med-4.1.0-new/config/cmake_files/medMacros.cmake
|
||||
--- med-4.1.0/config/cmake_files/medMacros.cmake 2021-12-03 09:35:30.675827163 +0100
|
||||
+++ med-4.1.0-new/config/cmake_files/medMacros.cmake 2021-12-03 09:32:31.894994147 +0100
|
||||
@@ -447,7 +447,7 @@ MACRO(MED_FIND_HDF5)
|
||||
##
|
||||
## Requires 1.10.x version
|
||||
##
|
||||
- IF (NOT HDF_VERSION_MAJOR_REF EQUAL 1 OR NOT HDF_VERSION_MINOR_REF EQUAL 10 OR NOT HDF_VERSION_RELEASE_REF GREATER 1)
|
||||
+ IF (HDF5_VERSION VERSION_LESS 1.10.2)
|
||||
MESSAGE(FATAL_ERROR "HDF5 version is ${HDF_VERSION_REF}. Only versions >= 1.10.2 are supported.")
|
||||
ENDIF()
|
||||
##
|
||||
diff -rupN med-4.1.0/src/ci/MEDfileCompatibility.c med-4.1.0-new/src/ci/MEDfileCompatibility.c
|
||||
--- med-4.1.0/src/ci/MEDfileCompatibility.c 2021-12-03 09:35:30.676827162 +0100
|
||||
+++ med-4.1.0-new/src/ci/MEDfileCompatibility.c 2021-12-03 09:33:26.292942149 +0100
|
||||
@@ -71,7 +71,7 @@ MEDfileCompatibility(const char* const f
|
||||
_hversionMMR=10000*_hmajeur+100*_hmineur+_hrelease;
|
||||
/* ISCRUTE(_hversionMMR); */
|
||||
/* ISCRUTE(HDF_VERSION_NUM_REF); */
|
||||
- if ( (_hversionMMR >= HDF_VERSION_NUM_REF) && (_hmineur == HDF_VERSION_MINOR_REF) ) *hdfok = MED_TRUE;
|
||||
+ if (_hversionMMR >= HDF_VERSION_NUM_REF) *hdfok = MED_TRUE;
|
||||
|
||||
/* TODO : Vérifier si la version mineure HDF du fichier est supérieure
|
||||
à la version mineure de la bibliothèque HDF utilisée :
|
||||
@@ -113,7 +113,7 @@ MEDfileCompatibility(const char* const f
|
||||
#if MED_NUM_MAJEUR != 4
|
||||
#error "Don't forget to update the test version here when you change the major version of the library !"
|
||||
#endif
|
||||
-#if H5_VERS_MINOR > 10
|
||||
+#if H5_VERS_MINOR > 12
|
||||
#error "Don't forget to check the compatibility version of the library, depending on the internal hdf model choice !"
|
||||
#error "Cf. _MEDfileCreate ..."
|
||||
#endif
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDattributeNumWrByName.c med-4.1.0-new/src/hdfi/_MEDattributeNumWrByName.c
|
||||
--- med-4.1.0/src/hdfi/_MEDattributeNumWrByName.c 2020-03-11 10:36:37.000000000 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDattributeNumWrByName.c 2021-12-03 09:33:08.851958696 +0100
|
||||
@@ -68,7 +68,7 @@ med_err _MEDattributeNumWrByName(med_idt
|
||||
|
||||
if ( (_attid=H5Aopen_by_name( pid, path, attname, H5P_DEFAULT, H5P_DEFAULT )) >= 0 ) {
|
||||
|
||||
- if ( H5Oget_info( pid, &_oinfo ) <0) {
|
||||
+ if ( H5Oget_info( pid, &_oinfo, H5O_INFO_ALL ) <0) {
|
||||
MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,"H5Oget_info");
|
||||
goto ERROR;
|
||||
}
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDattributeNumWr.c med-4.1.0-new/src/hdfi/_MEDattributeNumWr.c
|
||||
--- med-4.1.0/src/hdfi/_MEDattributeNumWr.c 2020-03-11 10:36:37.000000000 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDattributeNumWr.c 2021-12-03 09:33:11.840955852 +0100
|
||||
@@ -77,7 +77,7 @@ med_err _MEDattributeNumWr(med_idt pid,
|
||||
|
||||
if ( (_attid=H5Aopen( pid, attname, H5P_DEFAULT )) >= 0 ) {
|
||||
|
||||
- if ( H5Oget_info( pid, &_oinfo ) <0) {
|
||||
+ if ( H5Oget_info( pid, &_oinfo, H5O_INFO_ALL ) <0) {
|
||||
MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,"H5Oget_info");
|
||||
goto ERROR;
|
||||
}
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDcheckAttributeStringFunc.c med-4.1.0-new/src/hdfi/_MEDcheckAttributeStringFunc.c
|
||||
--- med-4.1.0/src/hdfi/_MEDcheckAttributeStringFunc.c 2020-03-11 10:36:37.000000000 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDcheckAttributeStringFunc.c 2021-12-03 09:33:14.266953546 +0100
|
||||
@@ -40,7 +40,7 @@ med_err _MEDcheckAttributeStringFunc(med
|
||||
oinfo.type=H5G_LINK;
|
||||
break;
|
||||
case H5L_TYPE_HARD:
|
||||
- if ( H5Oget_info_by_name( id, lname, &oinfo, H5P_DEFAULT ) <0) {
|
||||
+ if ( H5Oget_info_by_name( id, lname, &oinfo, H5O_INFO_ALL, H5P_DEFAULT ) <0) {
|
||||
MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,"H5Oget_info_by_name");
|
||||
SSCRUTE(lname);
|
||||
}
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDchecknSublinkFunc.c med-4.1.0-new/src/hdfi/_MEDchecknSublinkFunc.c
|
||||
--- med-4.1.0/src/hdfi/_MEDchecknSublinkFunc.c 2020-03-11 10:36:36.000000000 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDchecknSublinkFunc.c 2021-12-03 09:33:16.487951437 +0100
|
||||
@@ -41,7 +41,7 @@ med_err _MEDchecknSublinkFunc(med_idt id
|
||||
oinfo.type=H5G_LINK;
|
||||
break;
|
||||
case H5L_TYPE_HARD:
|
||||
- if ( H5Oget_info_by_name( id, lname, &oinfo, H5P_DEFAULT ) <0) {
|
||||
+ if ( H5Oget_info_by_name( id, lname, &oinfo, H5O_INFO_ALL, H5P_DEFAULT ) <0) {
|
||||
MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,"H5Oget_info_by_name");
|
||||
SSCRUTE(lname);
|
||||
}
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDdatagroupExist.c med-4.1.0-new/src/hdfi/_MEDdatagroupExist.c
|
||||
--- med-4.1.0/src/hdfi/_MEDdatagroupExist.c 2020-03-11 10:36:37.000000000 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDdatagroupExist.c 2021-12-03 09:33:18.742949298 +0100
|
||||
@@ -45,7 +45,7 @@ med_err _MEDdatagroupExist(const med_idt
|
||||
|
||||
case H5L_TYPE_HARD:
|
||||
*isasoftlink = MED_FALSE;
|
||||
- if ( H5Oget_info_by_name( gid, datagroupname, &_oinfo, H5P_DEFAULT ) <0) {
|
||||
+ if ( H5Oget_info_by_name( gid, datagroupname, &_oinfo, H5O_INFO_ALL, H5P_DEFAULT ) <0) {
|
||||
MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,"H5Oget_info_by_name");
|
||||
SSCRUTE( datagroupname);
|
||||
}
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDdatasetExist.c med-4.1.0-new/src/hdfi/_MEDdatasetExist.c
|
||||
--- med-4.1.0/src/hdfi/_MEDdatasetExist.c 2020-03-11 10:36:37.000000000 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDdatasetExist.c 2021-12-03 09:33:24.158944167 +0100
|
||||
@@ -47,7 +47,7 @@ med_err _MEDdatasetExist(const med_idt
|
||||
|
||||
case H5L_TYPE_HARD:
|
||||
*isasoftlink = MED_FALSE;
|
||||
- if ( H5Oget_info_by_name( gid, datasetname, &_oinfo, H5P_DEFAULT ) <0) {
|
||||
+ if ( H5Oget_info_by_name( gid, datasetname, &_oinfo, H5O_INFO_ALL, H5P_DEFAULT ) <0) {
|
||||
MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,"H5Oget_info_by_name");
|
||||
SSCRUTE( datasetname);
|
||||
}
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDfileCreate.c med-4.1.0-new/src/hdfi/_MEDfileCreate.c
|
||||
--- med-4.1.0/src/hdfi/_MEDfileCreate.c 2021-12-03 09:35:30.677827161 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDfileCreate.c 2021-12-03 09:32:31.894994147 +0100
|
||||
@@ -159,7 +159,7 @@ med_idt _MEDfileCreate(const char * cons
|
||||
* En HDF5-1.10.0p1 cela n'a aucun effet !
|
||||
* Un test autoconf permet de fixer un intervalle de version HDF à MED.
|
||||
*/
|
||||
-#if H5_VERS_MINOR > 10
|
||||
+#if H5_VERS_MINOR > 12
|
||||
#error "Don't forget to change the compatibility version of the library !"
|
||||
#endif
|
||||
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDfileOpen.c med-4.1.0-new/src/hdfi/_MEDfileOpen.c
|
||||
--- med-4.1.0/src/hdfi/_MEDfileOpen.c 2021-12-03 09:35:30.677827161 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDfileOpen.c 2021-12-03 09:32:31.894994147 +0100
|
||||
@@ -72,7 +72,7 @@ med_idt _MEDfileOpen(const char * const
|
||||
|
||||
• The creation order tracking property, H5P_CRT_ORDER_TRACKED, has been set in the group creation property list (see H5Pset_link_creation_order).
|
||||
*/
|
||||
-#if H5_VERS_MINOR > 10
|
||||
+#if H5_VERS_MINOR > 12
|
||||
#error "Don't forget to change the compatibility version of the library !"
|
||||
#endif
|
||||
/* L'avantage de bloquer le modèle interne HDF5
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDlinkObjs.c med-4.1.0-new/src/hdfi/_MEDlinkObjs.c
|
||||
--- med-4.1.0/src/hdfi/_MEDlinkObjs.c 2020-03-11 10:36:37.000000000 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDlinkObjs.c 2021-12-03 09:33:21.096947067 +0100
|
||||
@@ -62,7 +62,7 @@ med_err _MEDlinkobjs(med_idt id,const ch
|
||||
sur un lien hard
|
||||
Sur un lien soft H5O_TYPE_UNKNOWN
|
||||
*/
|
||||
- if ( H5Oget_info_by_name( id, lname, &oinfo, H5P_DEFAULT ) <0) {
|
||||
+ if ( H5Oget_info_by_name( id, lname, &oinfo, H5O_INFO_ALL, H5P_DEFAULT ) <0) {
|
||||
MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,"H5Oget_info_by_name");
|
||||
SSCRUTE(lname);
|
||||
}
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDmemFileOpen.c med-4.1.0-new/src/hdfi/_MEDmemFileOpen.c
|
||||
--- med-4.1.0/src/hdfi/_MEDmemFileOpen.c 2021-12-03 09:35:30.678827160 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDmemFileOpen.c 2021-12-03 09:32:31.894994147 +0100
|
||||
@@ -434,7 +434,7 @@ med_idt _MEDmemFileOpen(const char * con
|
||||
goto ERROR;
|
||||
}
|
||||
|
||||
-#if H5_VERS_MINOR > 10
|
||||
+#if H5_VERS_MINOR > 12
|
||||
#error "Don't forget to change the compatibility version of the library !"
|
||||
#endif
|
||||
if ( H5Pset_libver_bounds( _fapl, H5F_LIBVER_18, H5F_LIBVER_18) ) {
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDparFileCreate.c med-4.1.0-new/src/hdfi/_MEDparFileCreate.c
|
||||
--- med-4.1.0/src/hdfi/_MEDparFileCreate.c 2021-12-03 09:35:30.678827160 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDparFileCreate.c 2021-12-03 09:32:31.894994147 +0100
|
||||
@@ -64,7 +64,7 @@ med_idt _MEDparFileCreate(const char * c
|
||||
* En HDF5-1.10.0p1 cela n'a aucun effet !
|
||||
* Un test autoconf permet de fixer un intervalle de version HDF à MED.
|
||||
*/
|
||||
-#if H5_VERS_MINOR > 10
|
||||
+#if H5_VERS_MINOR > 12
|
||||
#error "Don't forget to change the compatibility version of the library !"
|
||||
#endif
|
||||
|
||||
diff -rupN med-4.1.0/src/hdfi/_MEDparFileOpen.c med-4.1.0-new/src/hdfi/_MEDparFileOpen.c
|
||||
--- med-4.1.0/src/hdfi/_MEDparFileOpen.c 2021-12-03 09:35:30.679827159 +0100
|
||||
+++ med-4.1.0-new/src/hdfi/_MEDparFileOpen.c 2021-12-03 09:32:31.894994147 +0100
|
||||
@@ -55,7 +55,7 @@ med_idt _MEDparFileOpen(const char * con
|
||||
MED_ERR_(_fid,MED_ERR_INIT,MED_ERR_PROPERTY,MED_ERR_PARALLEL_MSG);
|
||||
goto ERROR;
|
||||
}
|
||||
-#if H5_VERS_MINOR > 10
|
||||
+#if H5_VERS_MINOR > 12
|
||||
#error "Don't forget to change the compatibility version of the library !"
|
||||
#endif
|
||||
if ( H5Pset_libver_bounds( _fapl, H5F_LIBVER_18, H5F_LIBVER_18 ) ) {
|
||||
diff -rupN med-4.1.0/tools/medimport/2.3.6/_MEDconvertStringDatasets.c med-4.1.0-new/tools/medimport/2.3.6/_MEDconvertStringDatasets.c
|
||||
--- med-4.1.0/tools/medimport/2.3.6/_MEDconvertStringDatasets.c 2020-03-11 10:36:40.000000000 +0100
|
||||
+++ med-4.1.0-new/tools/medimport/2.3.6/_MEDconvertStringDatasets.c 2021-12-03 09:34:42.715870908 +0100
|
||||
@@ -52,7 +52,7 @@ med_err _MEDconvertStringDatasets(med_id
|
||||
oinfo.type=(H5O_type_t) H5G_LINK;
|
||||
break;
|
||||
case H5L_TYPE_HARD:
|
||||
- if ( H5Oget_info_by_name( id, lname, &oinfo, H5P_DEFAULT ) <0) {
|
||||
+ if ( H5Oget_info_by_name( id, lname, &oinfo, H5O_INFO_ALL, H5P_DEFAULT ) <0) {
|
||||
MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,"H5Oget_info_by_name");
|
||||
SSCRUTE(lname);
|
||||
}
|
||||
diff -rupN med-4.1.0/tools/medimport/4.0.0/_MEDfieldValueUpdateEntityList41.c med-4.1.0-new/tools/medimport/4.0.0/_MEDfieldValueUpdateEntityList41.c
|
||||
--- med-4.1.0/tools/medimport/4.0.0/_MEDfieldValueUpdateEntityList41.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ med-4.1.0-new/tools/medimport/4.0.0/_MEDfieldValueUpdateEntityList41.c 2020-03-11 10:52:20.000000000 +0100
|
||||
@@ -0,0 +1,253 @@
|
||||
+/* This file is part of MED.
|
||||
+ *
|
||||
+ * COPYRIGHT (C) 1999 - 2020 EDF R&D, CEA/DEN
|
||||
+ * MED is free software: you can redistribute it and/or modify
|
||||
+ * it under the terms of the GNU Lesser General Public License as published by
|
||||
+ * the Free Software Foundation, either version 3 of the License, or
|
||||
+ * (at your option) any later version.
|
||||
+ *
|
||||
+ * MED is distributed in the hope that it will be useful,
|
||||
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+ * GNU Lesser General Public License for more details.
|
||||
+ *
|
||||
+ * You should have received a copy of the GNU Lesser General Public License
|
||||
+ * along with MED. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ */
|
||||
+
|
||||
+
|
||||
+#include <med.h>
|
||||
+#include <med_config.h>
|
||||
+#include <med_outils.h>
|
||||
+#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
+
|
||||
+/* Inclus par med.h.in */
|
||||
+/* #include <stdint.h> */
|
||||
+
|
||||
+/* #define NDEBUG */
|
||||
+/* #include <assert.h> */
|
||||
+
|
||||
+/* const char * const _MEDgetEntityListAttributeIName(const med_entity_type entitytype) { */
|
||||
+/* switch( entitytype ) { */
|
||||
+/* case MED_UNDEF_ENTITY_TYPE : return MED_NOM_LEN; break; */
|
||||
+/* case MED_CELL : return MED_NOM_LGC; break; */
|
||||
+/* case MED_NODE : return MED_NOM_LGN; break; */
|
||||
+/* case MED_DESCENDING_FACE : return MED_NOM_LGF; break; */
|
||||
+/* case MED_DESCENDING_EDGE : return MED_NOM_LGE; break; */
|
||||
+/* case MED_NODE_ELEMENT : return MED_NOM_LGT; break; */
|
||||
+/* case MED_STRUCT_ELEMENT : return MED_NOM_LGS; break; */
|
||||
+/* } */
|
||||
+/* } */
|
||||
+/* /\*ALL : Toutes les étapes de calcul.*\/ */
|
||||
+/* const char * const _MEDgetEntityListAttributeINameAll(const med_entity_type entitytype) { */
|
||||
+/* switch( entitytype ) { */
|
||||
+/* case MED_UNDEF_ENTITY_TYPE : return MED_NOM_LAA; break; */
|
||||
+/* case MED_CELL : return MED_NOM_LCA; break; */
|
||||
+/* case MED_NODE : return MED_NOM_LNA; break; */
|
||||
+/* case MED_DESCENDING_FACE : return MED_NOM_LFA; break; */
|
||||
+/* case MED_DESCENDING_EDGE : return MED_NOM_LEA; break; */
|
||||
+/* case MED_NODE_ELEMENT : return MED_NOM_LTA; break; */
|
||||
+/* case MED_STRUCT_ELEMENT : return MED_NOM_LSA; break; */
|
||||
+/* } */
|
||||
+/* } */
|
||||
+
|
||||
+
|
||||
+/*Mise à jour de la liste des types d'entités/géométriques utilisés globlalement au niveau du datagroup _gid0 et
|
||||
+ Mise à jour de la liste des types d'entités/géométriques utilisés localement au niveau du datagroup _gid1
|
||||
+ Les gidname sont utilisés pour générér des messages d'erreur avec des informations significatives (todo : retrouver le nom avec l'objid)
|
||||
+*/
|
||||
+
|
||||
+med_int _MEDfieldValueUpdateEntityList(const char * const gid0name ,
|
||||
+ const char * const gid1name ,
|
||||
+ const med_idt gid0 ,
|
||||
+ const med_idt gid1 ,
|
||||
+ const med_entity_type entitytype ,
|
||||
+ const med_geometry_type geotype ,
|
||||
+ const med_bool forentity ) {
|
||||
+
|
||||
+ med_bool _attexist = MED_FALSE;
|
||||
+ med_err _ret = -1;
|
||||
+ uint32_t _lentitytype1 = 0;
|
||||
+ uint32_t _lentitytype2 = 0;
|
||||
+ uint32_t _lentitytype1sav = 0;
|
||||
+ uint32_t _lentitytype2sav = 0;
|
||||
+ uint32_t _lgeotype = 0;
|
||||
+ med_int _nsamelentitype = 0;
|
||||
+ med_int _nsamelentitypesav = 0;
|
||||
+ med_idt _gid = gid0;
|
||||
+ med_idt _datagroup1 = gid1;
|
||||
+ const char * _attname = NULL;
|
||||
+ const char * _attallname = NULL;
|
||||
+ const char * fieldname = gid0name;
|
||||
+ const char * _datagroupname1 = gid1name;
|
||||
+ med_entity_type _entytypeforattname = MED_UNDEF_ENTITY_TYPE;
|
||||
+ int _it = 0;
|
||||
+
|
||||
+
|
||||
+ /*Si l'on met à jour la liste des types géométriques (forentity==0), il faut récupérer :
|
||||
+ - le nom de l'attribut qui les stocke pour l'entitytype passé en paramètre
|
||||
+ - le nom de l'attribut qui stocke le nombre d'étapes de calcul qui ont la même liste
|
||||
+ Sinon, on récupère, les noms d'attributs associés à la liste des type d'entités
|
||||
+ */
|
||||
+ if (! forentity) _entytypeforattname = entitytype;
|
||||
+ _attname = _MEDgetEntityListAttributeIName (_entytypeforattname);
|
||||
+ _attallname = _MEDgetEntityListAttributeINameAll (_entytypeforattname);
|
||||
+
|
||||
+ /* - La fonction MEDgetEntityGeometyTypeIt(entitytype,geotype) nous permet d'obtenir un numéro d'itération de type géométrique
|
||||
+ (commence à 1 et est incrémental) que l'on associe à un numéro de bit d'un entier 32bits (1 entier pour chaque type d'entité)
|
||||
+ - Cet entier est stocké pour chaque étape de calcul et globalement au champ (si au moins un type géométrique existe pour ce type d'entité).
|
||||
+ Cela permet de limiter la taille du stockage et d'accéder directement par type d'entité aux types géométriques présents.
|
||||
+ */
|
||||
+ if (forentity)
|
||||
+ _it=entitytype;
|
||||
+ else
|
||||
+ _it=MEDgetEntityGeometryTypeIt(entitytype, geotype)-1;
|
||||
+
|
||||
+ /* ISCRUTE_int(entitytype);ISCRUTE_int(geotype); */
|
||||
+ /* SSCRUTE(MED_GET_ENTITY_TYPENAME[MEDgetEntityTypeIt(entitytype)]); */
|
||||
+ /*TODO : Etudier la possibilité de récupérer le nom avec l'id de l'objet */
|
||||
+
|
||||
+ /* SSCRUTE(fieldname); */
|
||||
+ /* SSCRUTE(MEDgetEntityTypeName(entitytype)); SSCRUTE(MEDgetGeometryTypeName(geotype)); */
|
||||
+ /* SSCRUTE(_attname); SSCRUTE(_attallname); */
|
||||
+
|
||||
+ /*Lire l'attribut _attname s'il exite, sinon la valeur lue est nulle */
|
||||
+ _MEDattributeExist(_gid,".",_attname,&_attexist);
|
||||
+ if (_attexist) {
|
||||
+/* if ( forentity) */
|
||||
+ if (_MEDattributeInt32Rd(_gid,_attname,&_lentitytype1sav) < 0) {
|
||||
+ MED_ERR_(_ret,MED_ERR_READ,MED_ERR_ATTRIBUTE,MED_ERR_FIELD_MSG);
|
||||
+ SSCRUTE(fieldname);SSCRUTE(_attname);goto ERROR;
|
||||
+ }
|
||||
+ }
|
||||
+ _lentitytype1 = _lentitytype1sav;
|
||||
+
|
||||
+ /* _MEDset32bits(&_lentitytype1, MEDgetEntityTypeIt(entitytype)); */
|
||||
+ /* On utilise directement la valeur de l'enum pour l'entitype, ainsi on utilise le décalage de 0 (on économise 1bit) */
|
||||
+ /* Mise à jour de la liste d'entités/types géométriques au niveau du champ */
|
||||
+ /* */
|
||||
+ /* ISCRUTE_int8(_lentitytype1sav); */
|
||||
+ /* _MEDset32bits(&_lentitytype1, MEDgetEntityTypeIt(entitytype)); */
|
||||
+ /* Utilise le numéro d'itération pour le type géométrique du type d'entité donné pour positionner le bit de même position (-1) */
|
||||
+ _MEDset32bits(&_lentitytype1, _it);
|
||||
+ /* ISCRUTE_int8(_lentitytype1); */
|
||||
+
|
||||
+ /* Ecriture de la liste globale des types */
|
||||
+ /*REM : Si l'attribut n'existait pas _lentitytype1sav == 0 et il ne se peut pas que _lentitytype1 == 0 même si entitytype == 0
|
||||
+ à cause du _MEDsetNbits() */
|
||||
+ if ( _lentitytype1sav != _lentitytype1 ) {
|
||||
+/* if ( forentity) */
|
||||
+ if ( _MEDattributeInt32Wr(_gid,_attname,&_lentitytype1) < 0) {
|
||||
+ MED_ERR_(_ret,MED_ERR_WRITE,MED_ERR_ATTRIBUTE,MED_ERR_FIELD_MSG);
|
||||
+ SSCRUTE(fieldname);SSCRUTE(_attname);goto ERROR;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ /*
|
||||
+ * Il faut mettre à jour au niveau 2 (étape de calcul)
|
||||
+ * la liste des types d'entités ou des types géométriques d'entités utilisées
|
||||
+ */
|
||||
+ _MEDattributeExist(_datagroup1,".",_attname,&_attexist);
|
||||
+ if (_attexist) {
|
||||
+ if (_MEDattributeInt32Rd(_datagroup1,_attname,&_lentitytype2sav) < 0) {
|
||||
+ MED_ERR_(_ret,MED_ERR_READ,MED_ERR_ATTRIBUTE,MED_ERR_FIELD_MSG);
|
||||
+ SSCRUTE(fieldname);SSCRUTE(_datagroupname1);SSCRUTE(_attname);goto ERROR;
|
||||
+ }
|
||||
+ }
|
||||
+ _lentitytype2 = _lentitytype2sav;
|
||||
+
|
||||
+ /* Mise à jour de la liste d'entités*/
|
||||
+ /* ISCRUTE_int8(_lentitytype2sav); */
|
||||
+ _MEDset32bits(&_lentitytype2, _it);
|
||||
+ /* ISCRUTE_int8(_lentitytype2); */
|
||||
+
|
||||
+ if ( _lentitytype2sav != _lentitytype2 )
|
||||
+ if ( _MEDattributeInt32Wr(_datagroup1,_attname,&_lentitytype2) < 0) {
|
||||
+ MED_ERR_(_ret,MED_ERR_WRITE,MED_ERR_ATTRIBUTE,MED_ERR_FIELD_MSG);
|
||||
+ SSCRUTE(fieldname);SSCRUTE(_datagroupname1);SSCRUTE(_attname);goto ERROR;
|
||||
+ }
|
||||
+
|
||||
+ /* GESTION DU NOMBRE D'ETAPES DE CALCUL */
|
||||
+
|
||||
+ /* Il faut pouvoir indiquer à l'utilisateur qu'il n'a pas besoin d'interroger toutes les étapes de calcul
|
||||
+ pour connaître la liste des types d'entités utilisées si cette liste est la même pour toutes les étapes.
|
||||
+ On vérifie que la liste des types d'entités utilisées à cette étape de calcul est le même que celle au niveau du champ global :
|
||||
+
|
||||
+ - Si la liste des types d'entités ou des types géométriques d'entité utilisés globalement
|
||||
+ avant l'appel à cette fonction était identique à la notre avant m.a.j. :
|
||||
+ _lentitytype1sav == _lentitytype2sav =>
|
||||
+ * Si la nouvelle liste est toujours identique :
|
||||
+ Ne rien faire, on le change pas le nbre d'étapes de calcul ayant la même liste
|
||||
+ * Si la nouvelle liste devient différente (ajout d'un nouveau type à la liste) :
|
||||
+ positionner le nombre d'étapes de calcul ayant la même liste de types d'entités à 1 (la notre)
|
||||
+ - Si la liste des types d'entités utilisés avant l'appel à cette fonction était différente
|
||||
+ entre celle de tous les autres étapes de calcul et celle de notre étape de calcul :
|
||||
+ _lentitytype1sav != _lentitytype2sav =>
|
||||
+ * Si la nouvelle liste est identique incrémenter le nombre d'étapes de calcul ayant la même liste de types d'entités
|
||||
+ * Si la nouvelle liste est toujours différente :
|
||||
+ Si notre type d'entité n'appartenait pas à la liste globale initiale => 0 sinon Ne rien faire,
|
||||
+ on le change pas le nbre d'étapes de calcul ayant la même liste.
|
||||
+ */
|
||||
+
|
||||
+ /* Cree l'attribut _attallname s'il n'exite pas déjà au niveau 0, sinon lit sa valeur */
|
||||
+ /* Nombre d'étapes de calcul partageant la même liste d'entités/types géométriques */
|
||||
+ _MEDattributeExist(_gid,".",_attallname,&_attexist);
|
||||
+ if (_attexist) {
|
||||
+ if (_MEDattrEntierLire(_gid,_attallname,&_nsamelentitype) < 0) {
|
||||
+ MED_ERR_(_ret,MED_ERR_READ,MED_ERR_ATTRIBUTE,MED_ERR_FIELD_MSG);
|
||||
+ SSCRUTE(fieldname);SSCRUTE(_attallname);goto ERROR;
|
||||
+ }
|
||||
+ } else
|
||||
+ _nsamelentitype = 0;
|
||||
+ _nsamelentitypesav = _nsamelentitype;
|
||||
+
|
||||
+ /** Il faut vérifier pour notre type d'entité indépendemment des autres déjà positionnées **/
|
||||
+ /*(VERIF:) En HDF//, le mécanisme fonctionne car l'écriture d'attribut n'est pas // */
|
||||
+ /* Si les listes de types d'entitées étaient identiques */
|
||||
+ if ( _lentitytype1sav == _lentitytype2sav ) {
|
||||
+ if ( (_lentitytype1sav != _lentitytype1 /*faux : idem _lentitytype2*/ ) || (!_lentitytype1sav) ) {
|
||||
+ /*Le fait que l'on en ajoute ou en supprime un modifie le nbre d'étape de calcul ayant la meme liste */
|
||||
+ /*Si on ajoute un nouveau type d'entite, il n'y a plus que notre étape en adéquation. */
|
||||
+ _nsamelentitype=1;
|
||||
+ /*La supression d'un type d'entité écrit en MED n'est pas possible*/
|
||||
+ /* ISCRUTE(_nsamelentitype); */
|
||||
+ } else {
|
||||
+ /*Il n'y a rien à faire car notre liste de type est toujours la même que la globale*/
|
||||
+ /* ISCRUTE(_nsamelentitype); */
|
||||
+ }
|
||||
+ } else {
|
||||
+ /* Si les listes de types d'entitées étaient déjà différentes */
|
||||
+ /*Si nos listes sont devenues les mêmes*/
|
||||
+ if (_lentitytype1 == _lentitytype2) {
|
||||
+ /*Les liste de types d'entités deviennent identiques, il faut alors incrémenter le nbre d'étapes utilisant
|
||||
+ la même liste.*/
|
||||
+ ++_nsamelentitype;
|
||||
+ /* ISCRUTE(_nsamelentitype); */
|
||||
+ } else {
|
||||
+ /*Si nos listes ne sont pas devenues les mêmes*/
|
||||
+ /*Ds ce cas de figure l'étape de calcul concernée n'utilisait pas
|
||||
+ * la liste de types d'entité du champ (il n'était pas comptabilisé dans le Nb. d'étapes de même liste d'entité).
|
||||
+ * La nouvelle liste d'entité utilisée par cette étape n'est toujours pas devenue la même que celle du champ.
|
||||
+ * Soit parcequ'il lui manque toujours certains type d'entités, soit parcequ'il utilise un nouveau type d'entité.
|
||||
+ */
|
||||
+ /* Si notre type d'entité n'appartenait pas à la liste globale initiale => 0 sinon on ne fait rien */
|
||||
+ if (!_MEDtest32bits(_lentitytype1sav,_it) ) _nsamelentitype=0;
|
||||
+ /* ISCRUTE(_nsamelentitype); */
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if ( _nsamelentitypesav != _nsamelentitype ) {
|
||||
+/* if ( forentity) */
|
||||
+ if ( _MEDattributeIntWr(_gid,_attallname,&_nsamelentitype) < 0) {
|
||||
+ MED_ERR_(_ret,MED_ERR_WRITE,MED_ERR_ATTRIBUTE,MED_ERR_FIELD_MSG);
|
||||
+ SSCRUTE(fieldname);SSCRUTE(_attallname);goto ERROR;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ _ret = 0;
|
||||
+
|
||||
+ ERROR:
|
||||
+ return _ret;
|
||||
+}
|
||||
+
|
64
med.spec
64
med.spec
@ -1,19 +1,21 @@
|
||||
Name: med
|
||||
Version: 4.1.0
|
||||
Release: 10%{?dist}
|
||||
Version: 4.0.0
|
||||
Release: 6%{?dist}
|
||||
Summary: Library to exchange meshed data
|
||||
|
||||
License: LGPLv3+
|
||||
URL: http://www.salome-platform.org/user-section/about/med
|
||||
Source0: http://files.salome-platform.org/Salome/other/%{name}-%{version}.tar.gz
|
||||
|
||||
# Chars are unsigned on arm, but the tests do not appear to expect this
|
||||
# Patch generated via
|
||||
# find . -type f -print0 | xargs -0 sed -i "s|-e 's/H5T_STD_I8LE//g'|-e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g'|g"
|
||||
Patch0: med_tests.patch
|
||||
# - Install headers in %%_includedir/med
|
||||
# - Use LIB_SUFFIX
|
||||
# - Install cmake config files to %%_libdir/cmake
|
||||
# - Install doc to %%_pkgdocdir
|
||||
Patch0: med_cmake.patch
|
||||
# hdf5-1.12 compatibility
|
||||
# https://gist.githubusercontent.com/jedbrown/527ef81ff59a0dccf833da40fdd15a47/raw/7482f9a42fdd277f5f9cf0167ea7a3381032ca7a/hdf5-1.12.patch
|
||||
Patch1: med-hdf5-1.12.patch
|
||||
Patch1: med_cmake.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
@ -87,12 +89,12 @@ mv ChangeLog.new ChangeLog
|
||||
%cmake -DMEDFILE_BUILD_PYTHON=1 \
|
||||
-DPYTHON_EXECUTABLE=%{__python3} \
|
||||
-DPYTHON_INCLUDE_DIR=%{_includedir}/python%{python3_version}$(python3-config --abiflags)/ \
|
||||
-DPYTHON_LIBRARY=%{_libdir}/libpython%{python3_version}$(python3-config --abiflags).so
|
||||
%cmake_build
|
||||
-DPYTHON_LIBRARY=%{_libdir}/libpython%{python3_version}$(python3-config --abiflags).so .
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
%make_install
|
||||
|
||||
# Remove test-suite files
|
||||
rm -rf %{buildroot}%{_bindir}/testc
|
||||
@ -100,8 +102,9 @@ rm -rf %{buildroot}%{_bindir}/testf
|
||||
rm -rf %{buildroot}%{_bindir}/testpy
|
||||
|
||||
%check
|
||||
%ctest || :
|
||||
ctest -V || :
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc AUTHORS ChangeLog README
|
||||
@ -109,7 +112,7 @@ rm -rf %{buildroot}%{_bindir}/testpy
|
||||
%{_libdir}/libmed.so.1*
|
||||
%{_libdir}/libmedC.so.1*
|
||||
%{_libdir}/libmedimport.so.0*
|
||||
%{_libdir}/libmedfwrap.so.11*
|
||||
%{_libdir}/libmedfwrap.so.11.*
|
||||
|
||||
%files -n python3-%{name}
|
||||
%{python3_sitearch}/%{name}/
|
||||
@ -130,45 +133,6 @@ rm -rf %{buildroot}%{_bindir}/testpy
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.1.0-9
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Sat Mar 05 2022 Sandro Mani <manisandro@gmail.com> - 4.1.0-8
|
||||
- Fix FTBFS with cmake 3.23.0
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Dec 03 2021 Sandro Mani <manisandro@gmail.com> - 4.1.0-3
|
||||
- Port to hdf5-1.12
|
||||
|
||||
* Tue Aug 10 2021 Orion Poplawski <orion@nwra.com> - 4.1.0-5
|
||||
- Rebuild for hdf5 1.10.7
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.1.0-3
|
||||
- Rebuilt for Python 3.10
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Thu Jul 30 2020 Sandro Mani <manisandro@gmail.com> - 4.1-1
|
||||
- Update to 4.1
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Jun 25 2020 Orion Poplawski <orion@cora.nwra.com> - 4.0.0-8
|
||||
- Rebuild for hdf5 1.10.6
|
||||
|
||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.0.0-7
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
117
med_cmake.patch
117
med_cmake.patch
@ -1,19 +1,19 @@
|
||||
diff -rupN --no-dereference med-4.1.0/CMakeLists.txt med-4.1.0-new/CMakeLists.txt
|
||||
--- med-4.1.0/CMakeLists.txt 2020-03-12 16:45:46.000000000 +0100
|
||||
+++ med-4.1.0-new/CMakeLists.txt 2021-12-03 09:32:31.544994485 +0100
|
||||
@@ -101,9 +101,9 @@ ENDIF(WIN32)
|
||||
diff -rupN med-4.0.0/CMakeLists.txt med-4.0.0-new/CMakeLists.txt
|
||||
--- med-4.0.0/CMakeLists.txt 2018-12-10 18:41:59.000000000 +0100
|
||||
+++ med-4.0.0-new/CMakeLists.txt 2019-03-13 10:59:52.543842255 +0100
|
||||
@@ -92,9 +92,9 @@ ENDIF(WIN32)
|
||||
IF(WIN32 AND NOT CYGWIN)
|
||||
SET(INSTALL_CMAKE_CONFIG_DIR cmake)
|
||||
ELSE()
|
||||
- SET(INSTALL_CMAKE_CONFIG_DIR share/cmake/med-fichier-${MED_STR_VERSION})
|
||||
+ SET(INSTALL_CMAKE_CONFIG_DIR lib${LIB_SUFFIX}/cmake/MEDFile)
|
||||
+ SET(INSTALL_CMAKE_CONFIG_DIR lib${LIB_SUFFIX}/cmake/${PROJECT_NAME})
|
||||
ENDIF()
|
||||
-SET(INSTALL_INCLUDE_DIR include)
|
||||
+SET(INSTALL_INCLUDE_DIR include/med)
|
||||
|
||||
## Pre-requisites detection
|
||||
# Detect HDF5 first to potentially retrieve MPI automatically:
|
||||
@@ -144,8 +144,8 @@ ENDIF()
|
||||
@@ -135,8 +135,8 @@ ENDIF()
|
||||
|
||||
## Installation of the doc
|
||||
IF(MEDFILE_INSTALL_DOC OR MEDFILE_BUILD_DOC)
|
||||
@ -24,26 +24,26 @@ diff -rupN --no-dereference med-4.1.0/CMakeLists.txt med-4.1.0-new/CMakeLists.tx
|
||||
ENDIF()
|
||||
|
||||
#######################
|
||||
diff -rupN --no-dereference med-4.1.0/config/cmake_files/medMacros.cmake med-4.1.0-new/config/cmake_files/medMacros.cmake
|
||||
--- med-4.1.0/config/cmake_files/medMacros.cmake 2020-01-30 17:04:19.000000000 +0100
|
||||
+++ med-4.1.0-new/config/cmake_files/medMacros.cmake 2021-12-03 09:32:31.545994485 +0100
|
||||
@@ -505,9 +505,9 @@ MACRO(INSTALL_AND_COMPILE_PYTHON_FILE PY
|
||||
diff -rupN med-4.0.0/config/cmake_files/medMacros.cmake med-4.0.0-new/config/cmake_files/medMacros.cmake
|
||||
--- med-4.0.0/config/cmake_files/medMacros.cmake 2018-11-05 13:49:21.000000000 +0100
|
||||
+++ med-4.0.0-new/config/cmake_files/medMacros.cmake 2019-03-12 18:58:06.528045176 +0100
|
||||
@@ -456,9 +456,9 @@ MACRO(INSTALL_AND_COMPILE_PYTHON_FILE PY
|
||||
FOREACH(input ${PYFILE2COMPINST})
|
||||
GET_FILENAME_COMPONENT(inputname ${input} NAME)
|
||||
INSTALL(FILES ${input} DESTINATION ${CMAKE_INSTALL_PREFIX}/${PYFILELOC})
|
||||
- INSTALL(CODE "MESSAGE(STATUS \"py compiling \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${PYFILELOC}/${inputname}\")")
|
||||
- INSTALL(CODE "SET(CMD \"import py_compile ; py_compile.compile('\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${PYFILELOC}/${inputname}')\")")
|
||||
- INSTALL(CODE "MESSAGE(STATUS \"py compiling ${CMAKE_INSTALL_PREFIX}/${PYFILELOC}/${inputname}\")")
|
||||
- INSTALL(CODE "SET(CMD \"import py_compile ; py_compile.compile('${CMAKE_INSTALL_PREFIX}/${PYFILELOC}/${inputname}')\")")
|
||||
- INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"\${CMD}\")")
|
||||
- INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -O -c \"\${CMD}\")")
|
||||
+# INSTALL(CODE "MESSAGE(STATUS \"py compiling \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${PYFILELOC}/${inputname}\")")
|
||||
+# INSTALL(CODE "SET(CMD \"import py_compile ; py_compile.compile('\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${PYFILELOC}/${inputname}')\")")
|
||||
+ #INSTALL(CODE "MESSAGE(STATUS \"py compiling ${CMAKE_INSTALL_PREFIX}/${PYFILELOC}/${inputname}\")")
|
||||
+ #INSTALL(CODE "SET(CMD \"import py_compile ; py_compile.compile('${CMAKE_INSTALL_PREFIX}/${PYFILELOC}/${inputname}')\")")
|
||||
+ #INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"\${CMD}\")")
|
||||
+ #INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -O -c \"\${CMD}\")")
|
||||
ENDFOREACH(input ${PYFILE2COMPINST})
|
||||
ENDMACRO(INSTALL_AND_COMPILE_PYTHON_FILE PYFILE2COMPINST PYFILELOC)
|
||||
diff -rupN --no-dereference med-4.1.0/python/CMakeLists.txt med-4.1.0-new/python/CMakeLists.txt
|
||||
--- med-4.1.0/python/CMakeLists.txt 2020-01-30 17:03:53.000000000 +0100
|
||||
+++ med-4.1.0-new/python/CMakeLists.txt 2021-12-03 09:32:31.545994485 +0100
|
||||
diff -rupN med-4.0.0/python/CMakeLists.txt med-4.0.0-new/python/CMakeLists.txt
|
||||
--- med-4.0.0/python/CMakeLists.txt 2018-11-05 13:49:21.000000000 +0100
|
||||
+++ med-4.0.0-new/python/CMakeLists.txt 2019-03-12 18:58:06.528045176 +0100
|
||||
@@ -36,7 +36,7 @@ SET(_link_libs
|
||||
${PYTHON_LIBRARIES}
|
||||
)
|
||||
@ -53,10 +53,85 @@ diff -rupN --no-dereference med-4.1.0/python/CMakeLists.txt med-4.1.0-new/python
|
||||
|
||||
# Ensure we will be able to run the Python tests from the build tree by outputing
|
||||
# files into the package folder:
|
||||
diff -rupN --no-dereference med-4.1.0/tools/medimport/CMakeLists.txt med-4.1.0-new/tools/medimport/CMakeLists.txt
|
||||
--- med-4.1.0/tools/medimport/CMakeLists.txt 2020-03-12 16:45:46.000000000 +0100
|
||||
+++ med-4.1.0-new/tools/medimport/CMakeLists.txt 2021-12-03 09:32:31.545994485 +0100
|
||||
@@ -90,4 +90,4 @@ IF(NOT (WIN32 AND MEDFILE_BUILD_STATIC_L
|
||||
diff -rupN med-4.0.0/src/CMakeLists.txt med-4.0.0-new/src/CMakeLists.txt
|
||||
--- med-4.0.0/src/CMakeLists.txt 2018-12-10 18:41:59.000000000 +0100
|
||||
+++ med-4.0.0-new/src/CMakeLists.txt 2019-03-12 18:58:06.530045174 +0100
|
||||
@@ -83,7 +83,7 @@ IF(MEDFILE_BUILD_SHARED_LIBS)
|
||||
TARGET_LINK_LIBRARIES(medC ${HDF5_LIBS} ${MPI_LIBS})
|
||||
MED_SET_DEFINITIONS(medC NOGDI)
|
||||
|
||||
- INSTALL(TARGETS medC EXPORT ${_export_group} DESTINATION lib)
|
||||
+ INSTALL(TARGETS medC EXPORT ${_export_group} DESTINATION lib${LIB_SUFFIX})
|
||||
ENDIF()
|
||||
|
||||
######### Static Libraries ##########
|
||||
@@ -97,7 +97,7 @@ IF(MEDFILE_BUILD_STATIC_LIBS)
|
||||
TARGET_LINK_LIBRARIES(medC_static ${HDF5_LIBS} ${MPI_LIBS})
|
||||
MED_SET_DEFINITIONS(medC_static NOGDI)
|
||||
|
||||
- INSTALL(TARGETS medC_static EXPORT ${_export_group} DESTINATION lib)
|
||||
+ INSTALL(TARGETS medC_static EXPORT ${_export_group} DESTINATION lib${LIB_SUFFIX})
|
||||
ENDIF()
|
||||
|
||||
########################### Fortran stuff ###################################
|
||||
@@ -113,7 +113,7 @@ IF(CMAKE_Fortran_COMPILER_WORKS)
|
||||
VERSION 11.0.0
|
||||
SOVERSION 11.0.0)
|
||||
TARGET_LINK_LIBRARIES(medfwrap medC)
|
||||
- INSTALL(TARGETS medfwrap EXPORT medfileTargetsF DESTINATION lib)
|
||||
+ INSTALL(TARGETS medfwrap EXPORT medfileTargetsF DESTINATION lib${LIB_SUFFIX})
|
||||
|
||||
# Add Shared MED library
|
||||
ADD_LIBRARY(med SHARED MEDiterators.c)
|
||||
@@ -124,7 +124,7 @@ IF(CMAKE_Fortran_COMPILER_WORKS)
|
||||
TARGET_LINK_LIBRARIES(med medfwrap)
|
||||
|
||||
# Install only the resulting library:
|
||||
- INSTALL(TARGETS med EXPORT medTargetsF DESTINATION lib)
|
||||
+ INSTALL(TARGETS med EXPORT medTargetsF DESTINATION lib${LIB_SUFFIX})
|
||||
ENDIF()
|
||||
|
||||
######### Static Libraries ##########
|
||||
@@ -137,7 +137,7 @@ IF(CMAKE_Fortran_COMPILER_WORKS)
|
||||
ADD_LIBRARY(medfwrap_static STATIC ${medfort_wrap_SOURCES})
|
||||
SET_TARGET_PROPERTIES(medfwrap_static PROPERTIES OUTPUT_NAME medfwrap)
|
||||
TARGET_LINK_LIBRARIES(medfwrap_static medC_static)
|
||||
- INSTALL(TARGETS medfwrap_static EXPORT medfileTargetsF DESTINATION lib)
|
||||
+ INSTALL(TARGETS medfwrap_static EXPORT medfileTargetsF DESTINATION lib${LIB_SUFFIX})
|
||||
|
||||
# Add Static MED library
|
||||
ADD_LIBRARY(med_static STATIC MEDiterators.c)
|
||||
@@ -145,7 +145,7 @@ IF(CMAKE_Fortran_COMPILER_WORKS)
|
||||
TARGET_LINK_LIBRARIES(med_static medfwrap_static)
|
||||
|
||||
# Install only the resulting library:
|
||||
- INSTALL(TARGETS med_static EXPORT medfileTargetsF DESTINATION lib)
|
||||
+ INSTALL(TARGETS med_static EXPORT medfileTargetsF DESTINATION lib${LIB_SUFFIX})
|
||||
ENDIF()
|
||||
|
||||
ENDIF(CMAKE_Fortran_COMPILER_WORKS)
|
||||
diff -rupN med-4.0.0/tools/medimport/CMakeLists.txt med-4.0.0-new/tools/medimport/CMakeLists.txt
|
||||
--- med-4.0.0/tools/medimport/CMakeLists.txt 2018-12-10 18:41:59.000000000 +0100
|
||||
+++ med-4.0.0-new/tools/medimport/CMakeLists.txt 2019-03-12 18:58:06.530045174 +0100
|
||||
@@ -56,7 +56,7 @@ IF(MEDFILE_BUILD_SHARED_LIBS)
|
||||
SOVERSION 0.3.0)
|
||||
TARGET_LINK_LIBRARIES(medimportengine medC)
|
||||
SET_TARGET_PROPERTIES(medimportengine PROPERTIES OUTPUT_NAME medimport)
|
||||
- INSTALL(TARGETS medimportengine DESTINATION lib)
|
||||
+ INSTALL(TARGETS medimportengine DESTINATION lib${LIB_SUFFIX})
|
||||
SET(_lib_to_link "medimportengine")
|
||||
ENDIF()
|
||||
|
||||
@@ -66,7 +66,7 @@ IF(MEDFILE_BUILD_STATIC_LIBS)
|
||||
TARGET_LINK_LIBRARIES(medimportengine_static medC_static)
|
||||
MED_SET_DEFINITIONS(medimportengine_static MED3_USESTATIC)
|
||||
SET_TARGET_PROPERTIES(medimportengine_static PROPERTIES OUTPUT_NAME medimport)
|
||||
- INSTALL(TARGETS medimportengine_static DESTINATION lib)
|
||||
+ INSTALL(TARGETS medimportengine_static DESTINATION lib${LIB_SUFFIX})
|
||||
# Give precendence to the shared object for the linking of
|
||||
# the executable medimport:
|
||||
IF(NOT _lib_to_link)
|
||||
@@ -87,4 +87,4 @@ IF(NOT (WIN32 AND MEDFILE_BUILD_STATIC_L
|
||||
INSTALL(TARGETS medimport DESTINATION bin )
|
||||
ENDIF()
|
||||
|
||||
|
95
med_tests.patch
Normal file
95
med_tests.patch
Normal file
@ -0,0 +1,95 @@
|
||||
diff -rupN med-4.0.0/tests/unittests/c/MEDinterp/Test_MEDfieldInterpWr.shn med-4.0.0-new/tests/unittests/c/MEDinterp/Test_MEDfieldInterpWr.shn
|
||||
--- med-4.0.0/tests/unittests/c/MEDinterp/Test_MEDfieldInterpWr.shn 2017-07-10 16:24:11.000000000 +0200
|
||||
+++ med-4.0.0-new/tests/unittests/c/MEDinterp/Test_MEDfieldInterpWr.shn 2018-12-25 12:03:35.385823247 +0100
|
||||
@@ -7,13 +7,13 @@ ${H5DUMP} ${BUILDDIR}/${file}.med > ${BU
|
||||
sed -e 's/H5T_STD_I32BE//g' -e 's/H5T_STD_I32LE//g' \
|
||||
-e 's/H5T_STD_I64BE//g' -e 's/H5T_STD_I64LE//g' \
|
||||
-e 's/H5T_IEEE_F64BE//g' -e 's/H5T_IEEE_F64LE//g' \
|
||||
- -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
+ -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
-e 's/HDF5.*{//g' \
|
||||
${BUILDDIR}/${file}.dump > ${BUILDDIR}/${file}.dump.tmp && \
|
||||
sed -e 's/H5T_STD_I32BE//g' -e 's/H5T_STD_I32LE//g' \
|
||||
-e 's/H5T_STD_I64BE//g' -e 's/H5T_STD_I64LE//g' \
|
||||
-e 's/H5T_IEEE_F64BE//g' -e 's/H5T_IEEE_F64LE//g' \
|
||||
- -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
+ -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
-e 's/HDF5.*{//g' \
|
||||
${BUILDDIR}/dumps.ref/${file}.dump > ${BUILDDIR}/${file}.dump.ref && \
|
||||
diff ${BUILDDIR}/${file}.dump.ref ${BUILDDIR}/${file}.dump.tmp && \
|
||||
diff -rupN med-4.0.0/tests/unittests/c/MEDinterp/Test_MEDinterpBaseFunctionWr.shn med-4.0.0-new/tests/unittests/c/MEDinterp/Test_MEDinterpBaseFunctionWr.shn
|
||||
--- med-4.0.0/tests/unittests/c/MEDinterp/Test_MEDinterpBaseFunctionWr.shn 2017-07-10 16:24:11.000000000 +0200
|
||||
+++ med-4.0.0-new/tests/unittests/c/MEDinterp/Test_MEDinterpBaseFunctionWr.shn 2018-12-25 12:03:35.386823244 +0100
|
||||
@@ -7,13 +7,13 @@ ${H5DUMP} ${BUILDDIR}/${file}.med > ${BU
|
||||
sed -e 's/H5T_STD_I32BE//g' -e 's/H5T_STD_I32LE//g' \
|
||||
-e 's/H5T_STD_I64BE//g' -e 's/H5T_STD_I64LE//g' \
|
||||
-e 's/H5T_IEEE_F64BE//g' -e 's/H5T_IEEE_F64LE//g' \
|
||||
- -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
+ -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
-e 's/HDF5.*{//g' \
|
||||
${BUILDDIR}/${file}.dump > ${BUILDDIR}/${file}.dump.tmp && \
|
||||
sed -e 's/H5T_STD_I32BE//g' -e 's/H5T_STD_I32LE//g' \
|
||||
-e 's/H5T_STD_I64BE//g' -e 's/H5T_STD_I64LE//g' \
|
||||
-e 's/H5T_IEEE_F64BE//g' -e 's/H5T_IEEE_F64LE//g' \
|
||||
- -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
+ -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
-e 's/HDF5.*{//g' \
|
||||
${BUILDDIR}/dumps.ref/${file}.dump > ${BUILDDIR}/${file}.dump.ref && \
|
||||
diff ${BUILDDIR}/${file}.dump.ref ${BUILDDIR}/${file}.dump.tmp && \
|
||||
diff -rupN med-4.0.0/tests/unittests/c/MEDinterp/Test_MEDinterpCr.shn med-4.0.0-new/tests/unittests/c/MEDinterp/Test_MEDinterpCr.shn
|
||||
--- med-4.0.0/tests/unittests/c/MEDinterp/Test_MEDinterpCr.shn 2017-07-10 16:24:11.000000000 +0200
|
||||
+++ med-4.0.0-new/tests/unittests/c/MEDinterp/Test_MEDinterpCr.shn 2018-12-25 12:03:35.386823244 +0100
|
||||
@@ -7,13 +7,13 @@ ${H5DUMP} ${BUILDDIR}/${file}.med > ${BU
|
||||
sed -e 's/H5T_STD_I32BE//g' -e 's/H5T_STD_I32LE//g' \
|
||||
-e 's/H5T_STD_I64BE//g' -e 's/H5T_STD_I64LE//g' \
|
||||
-e 's/H5T_IEEE_F64BE//g' -e 's/H5T_IEEE_F64LE//g' \
|
||||
- -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
+ -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
-e 's/HDF5.*{//g' \
|
||||
${BUILDDIR}/${file}.dump > ${BUILDDIR}/${file}.dump.tmp && \
|
||||
sed -e 's/H5T_STD_I32BE//g' -e 's/H5T_STD_I32LE//g' \
|
||||
-e 's/H5T_STD_I64BE//g' -e 's/H5T_STD_I64LE//g' \
|
||||
-e 's/H5T_IEEE_F64BE//g' -e 's/H5T_IEEE_F64LE//g' \
|
||||
- -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
+ -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
-e 's/HDF5.*{//g' \
|
||||
${BUILDDIR}/dumps.ref/${file}.dump > ${BUILDDIR}/${file}.dump.ref && \
|
||||
diff ${BUILDDIR}/${file}.dump.ref ${BUILDDIR}/${file}.dump.tmp && \
|
||||
diff -rupN med-4.0.0/tests/unittests/c/Test_MEDstructElementCr.shn med-4.0.0-new/tests/unittests/c/Test_MEDstructElementCr.shn
|
||||
--- med-4.0.0/tests/unittests/c/Test_MEDstructElementCr.shn 2017-07-10 16:24:11.000000000 +0200
|
||||
+++ med-4.0.0-new/tests/unittests/c/Test_MEDstructElementCr.shn 2018-12-25 12:03:35.386823244 +0100
|
||||
@@ -7,13 +7,13 @@ ${H5DUMP} ${BUILDDIR}/${file}.med > ${BU
|
||||
sed -e 's/H5T_STD_I32BE//g' -e 's/H5T_STD_I32LE//g' \
|
||||
-e 's/H5T_STD_I64BE//g' -e 's/H5T_STD_I64LE//g' \
|
||||
-e 's/H5T_IEEE_F64BE//g' -e 's/H5T_IEEE_F64LE//g' \
|
||||
- -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
+ -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
-e 's/HDF5.*{//g' \
|
||||
${BUILDDIR}/${file}.dump > ${BUILDDIR}/${file}.dump.tmp && \
|
||||
sed -e 's/H5T_STD_I32BE//g' -e 's/H5T_STD_I32LE//g' \
|
||||
-e 's/H5T_STD_I64BE//g' -e 's/H5T_STD_I64LE//g' \
|
||||
-e 's/H5T_IEEE_F64BE//g' -e 's/H5T_IEEE_F64LE//g' \
|
||||
- -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
+ -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
-e 's/HDF5.*{//g' \
|
||||
${BUILDDIR}/dumps.ref/${file}.dump > ${BUILDDIR}/${file}.dump.ref && \
|
||||
diff ${BUILDDIR}/${file}.dump.ref ${BUILDDIR}/${file}.dump.tmp && \
|
||||
diff -rupN med-4.0.0/tests/unittests/c/Test_MEDsupportMesh.shn med-4.0.0-new/tests/unittests/c/Test_MEDsupportMesh.shn
|
||||
--- med-4.0.0/tests/unittests/c/Test_MEDsupportMesh.shn 2017-07-10 16:24:11.000000000 +0200
|
||||
+++ med-4.0.0-new/tests/unittests/c/Test_MEDsupportMesh.shn 2018-12-25 12:03:35.386823244 +0100
|
||||
@@ -7,13 +7,13 @@ ${H5DUMP} ${BUILDDIR}/${file}.med > ${BU
|
||||
sed -e 's/H5T_STD_I32BE//g' -e 's/H5T_STD_I32LE//g' \
|
||||
-e 's/H5T_STD_I64BE//g' -e 's/H5T_STD_I64LE//g' \
|
||||
-e 's/H5T_IEEE_F64BE//g' -e 's/H5T_IEEE_F64LE//g' \
|
||||
- -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
+ -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
-e 's/HDF5.*{//g' \
|
||||
${BUILDDIR}/${file}.dump > ${BUILDDIR}/${file}.dump.tmp && \
|
||||
sed -e 's/H5T_STD_I32BE//g' -e 's/H5T_STD_I32LE//g' \
|
||||
-e 's/H5T_STD_I64BE//g' -e 's/H5T_STD_I64LE//g' \
|
||||
-e 's/H5T_IEEE_F64BE//g' -e 's/H5T_IEEE_F64LE//g' \
|
||||
- -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
+ -e 's/H5T_STD_I8LE//g' -e 's/H5T_STD_U8LE//g' -e 's/H5T_STD_I8BE//g' -e 's/H5T_STD_U8BE//g' \
|
||||
-e 's/HDF5.*{//g' \
|
||||
${BUILDDIR}/dumps.ref/${file}.dump > ${BUILDDIR}/${file}.dump.ref && \
|
||||
diff ${BUILDDIR}/${file}.dump.ref ${BUILDDIR}/${file}.dump.tmp && \
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (med-4.1.0.tar.gz) = 94d07663c2f6a3cd497f54b480c3d742476d2a25172feb567980c9e75d49f4661aa2c6aaf570470938265997154e348bc1608065b86d42afda52d4e6361fedf8
|
||||
SHA512 (med-4.0.0.tar.gz) = 2840437010481fc5f12a56e3282f8ca5e94df541899e2b511756702f86d0f87dbf2f6e086d8e591e2bd370d8f4bab8089e7f7f939fea16354a23e2b5a4d96cd7
|
||||
|
Loading…
Reference in New Issue
Block a user