From 5a637dd4ad02fa3641105c3392fcecdc03fb802b Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 20 Apr 2012 14:46:48 +0000 Subject: [PATCH] Some new functionnalities with arrays in python. --- src/MEDCoupling_Swig/MEDCoupling.i | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/MEDCoupling_Swig/MEDCoupling.i b/src/MEDCoupling_Swig/MEDCoupling.i index 9c63d2e3c..20a3ab3a3 100644 --- a/src/MEDCoupling_Swig/MEDCoupling.i +++ b/src/MEDCoupling_Swig/MEDCoupling.i @@ -1671,6 +1671,11 @@ namespace ParaMEDMEM { return self->doubleValue(); } + + DataArrayDouble *buildDADouble() + { + return self->buildDADouble(1,self->getNumberOfCompo()); + } PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) { @@ -3076,6 +3081,11 @@ namespace ParaMEDMEM { return self->intValue(); } + + DataArrayInt *buildDAInt() + { + return self->buildDAInt(1,self->getNumberOfCompo()); + } PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) { -- 2.39.2