--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/9763685b-f159-4689-a913-dced4c642dc1%40googlegroups.com.
Dear Feimi,On first glance, it looks like the object you send in as the first argument to this function has the wrong type. The function expects an ArrayView< const int >, but you are passing it an ArrayView< int >. That’s the first thing that I spotted, but hopefully its just this that’s an issue for you.I hope that this helps.Best,Jean-Paul
On 27 Jan 2020, at 19:42, Feimi Yu <yuf...@gmail.com> wrote:
Hi,I was trying to use the the function Utilities::MPI::sum (const ArrayView< const T > &values, const MPI_Comm &mpi_communicator, const ArrayView< T > &sums)for an std::vector<int>. I created an ArrayView<int> to pack the vector and passed it into this function. However, the compiler keeps telling me:undefined reference to 'void dealii::Utilities::MPI::sum<dealii::ArrayView<int>, dealii::ArrayView<int> >(dealii::ArrayView<int> const&, ompi_communicator_t* const&, dealii::ArrayView<int>&)'I checked base/mpi.inst.in and cmake/config/template-arguments.in. Int type should be included in the instantiation list, but I could not figure out why this does not work for me.Thanks!Feimi--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dea...@googlegroups.com.
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/e35102aa-3f62-4371-8cb6-474ea4c5fd69%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dea...@googlegroups.com.