X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMEDCouplingMemArray.cxx;h=1b5a457a8d5c1b9b35fca8f05c431cb4cf4f7b52;hb=b607ffc713080a567fb90595118069ac18181e99;hp=488c15a897e0592f38158ced62245e40bd85ca9b;hpb=a7aa4220a94712d3e6dccb75195310b42f8e8018;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MEDCouplingMemArray.cxx b/src/MEDCoupling/MEDCouplingMemArray.cxx index 488c15a89..1b5a457a8 100755 --- a/src/MEDCoupling/MEDCouplingMemArray.cxx +++ b/src/MEDCoupling/MEDCouplingMemArray.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2019 CEA/DEN, EDF R&D +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,23 +42,30 @@ typedef double (*MYFUNCPTR)(double); using namespace MEDCoupling; -template class MEDCoupling::MemArray; -template class MEDCoupling::MemArray; -template class MEDCoupling::DataArrayTemplate; -template class MEDCoupling::DataArrayTemplate; -template class MEDCoupling::DataArrayTemplateClassic; -template class MEDCoupling::DataArrayTemplateClassic; -template class MEDCoupling::DataArrayTemplateClassic; -template class MEDCoupling::DataArrayTemplateFP; -template class MEDCoupling::DataArrayIterator; -template class MEDCoupling::DataArrayIterator; -template class MEDCoupling::DataArrayDiscrete; -template class MEDCoupling::DataArrayDiscreteSigned; -template class MEDCoupling::DataArrayDiscrete; -template class MEDCoupling::DataArrayDiscreteSigned; -template class MEDCoupling::DataArrayTuple; -template class MEDCoupling::DataArrayTuple; -template class MEDCoupling::DataArrayTuple; +template class MEDCOUPLING_EXPORT MEDCoupling::MemArray; +template class MEDCOUPLING_EXPORT MEDCoupling::MemArray; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayTemplate; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayTemplate; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayTemplateClassic; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayTemplateClassic; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayTemplateClassic; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayTemplateFP; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayIterator; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayIterator; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayDiscrete; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayDiscreteSigned; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayDiscrete; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayDiscreteSigned; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayTuple; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayTuple; +template class MEDCOUPLING_EXPORT MEDCoupling::DataArrayTuple; + +void MEDCoupling::DACheckNbOfTuplesAndComp(const DataArray *da, mcIdType nbOfTuples, std::size_t nbOfCompo, const std::string& msg) +{ + if(!da) + throw INTERP_KERNEL::Exception("DACheckNbOfTuplesAndComp : null input object !"); + da->checkNbOfTuplesAndComp(nbOfTuples,nbOfCompo,msg); +} template void DataArrayDouble::findCommonTuplesAlg(const double *bbox, mcIdType nbNodes, mcIdType limitNodeId, double prec, DataArrayIdType *c, DataArrayIdType *cI) const