From 14e2e3f6f4699766458c13168ae0f969f3a8dec4 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 25 Sep 2020 10:02:12 +0200 Subject: [PATCH] Some useful variables to existing int64 field class to ease int64 porting --- src/MEDCoupling_Swig/MEDCouplingCommon.i | 5 +++++ src/MEDLoader/Swig/MEDLoaderCommon.i | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/MEDCoupling_Swig/MEDCouplingCommon.i b/src/MEDCoupling_Swig/MEDCouplingCommon.i index b7b634fdb..b6d35cfe6 100644 --- a/src/MEDCoupling_Swig/MEDCouplingCommon.i +++ b/src/MEDCoupling_Swig/MEDCouplingCommon.i @@ -6138,6 +6138,11 @@ MEDCouplingUMesh.SetPartOfIndexedArraysSameIdx = DataArrayInt.SetPartOfInde MEDCouplingUMesh.RemoveIdsFromIndexedArrays = DataArrayInt.RemoveIdsFromIndexedArrays MEDCouplingFieldInt = MEDCouplingFieldInt32 +if MEDCouplingUse64BitIDs(): + MEDCouplingFieldID = MEDCouplingFieldInt64 +else: + MEDCouplingFieldID = MEDCouplingFieldInt32 + %} %pythoncode %{ diff --git a/src/MEDLoader/Swig/MEDLoaderCommon.i b/src/MEDLoader/Swig/MEDLoaderCommon.i index 940061189..24f3aedae 100644 --- a/src/MEDLoader/Swig/MEDLoaderCommon.i +++ b/src/MEDLoader/Swig/MEDLoaderCommon.i @@ -4336,4 +4336,10 @@ MEDFileAnyTypeField1TS.__enter__=enter1TS MEDFileAnyTypeField1TS.__exit__=exit1TS MEDFileIntField1TS = MEDFileInt32Field1TS MEDFileIntFieldMultiTS = MEDFileInt32FieldMultiTS +if MEDCouplingUse64BitIDs(): + MEDFileIDField1TS = MEDFileInt64Field1TS + MEDFileIDFieldMultiTS = MEDFileInt64FieldMultiTS +else: + MEDFileIDField1TS = MEDFileInt32Field1TS + MEDFileIDFieldMultiTS = MEDFileInt32FieldMultiTS %} -- 2.39.2