Hi Daniel,
Recently, I'm trying to build deal.ii-9.3.3 with the
option DEAL_II_WITH_MPI=ON on Windows 10 system using MSVC 2019.
Interesting experiment -- we automatically build every change with MSVC,
but not with MPI. I didn't even know that there is an MPI implementation
for Windows.
Before coming to the question at hand, let me also point out that the
version of MPI you have is 2.0. We merged a patch today that will
require MPI 3.0 for the next release, coming out this summer. Do you
happen to know whether there is an MPI 3-compatible implementation on
Windows?
I used
CMake to generate deal.ii.sln and it worked fine (see attached
detailed.log). However, when i built the deal.ii.sln, errors occurred in
the grid_tools.h file. It pointed to these codes below:
//
/ process_cells([&](const auto &cell, const auto key) {/
/ if (cell_filter(cell))/
/ neighbor_cell_list[key].emplace_back(/
/ cell->id().template to_binary<spacedim>());/
/ });/
We've had this kind of problem with MSVC in other cases as well. Can you
try what happens if you remove the 'template' keyword in that line? The
C++ standard requires it there, but there are plenty of places where we
had to do a similar change for MSVC in the past.
Alternatively, 'dim' is defined as a 'constexpr' variable higher up in
the function. Does it make a difference whether you define it as
constexpr int dim
or
const int dim
?
In the end, it boils down to finding a syntax that MSVC accepts and to
put a corresponding patch into the code base.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/0aab88a2-474f-a2c2-21bc-431a5c8cc0eb%40colostate.edu.