Hi there,
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. 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>());*
* });*
To sum up, the error list showed four main items in the following
(also in the attached error_message.jpg file):
(1). error C2672: 'dealii::CellId::to_binary': no matching overloaded
function found
(2). error C2975: 'dim': invalid template argument for
'dealii::CellId::to_binary', expected compile-time constant expression
(3). error C2672:
'std::vector<dealii::CellId::binary_type,std::allocator<dealii::CellId::binary_type>>::emplace_back':
no matching overloaded function found
(4). error C2664: '_Ret std::_Func_class<_Ret,const std::function<void
(const dealii::TriaActiveIterator<dealii::DoFCellAccessor<1,1,false>>
&,dealii::types::subdomain_id)> &>::operator ()(const std::function<void
(const dealii::TriaActiveIterator<dealii::DoFCellAccessor<1,1,false>>
&,dealii::types::subdomain_id)> &) const': cannot convert argument 1 from
'dealii::GridTools::internal::exchange_cell_data::<lambda_bb98f0c896b01fed9263cc1b81316be5>'
to 'const std::function<void (const
dealii::TriaActiveIterator<dealii::DoFCellAccessor<1,1,false>>
&,dealii::types::subdomain_id)> &'
It seemed that it cannot convert the lambda function to the
std::function. I cannot figure out why this happened. The building process
was successful without the MPI option. BTW, i used the Microsoft MPI and
the version is 2.0. Could someone help me figure this out and fix this
problem? Any help is much appreciated!
--
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/463dddea-f11c-4b50-98bf-e9a338ebb34fn%40googlegroups.com.
###
#
# deal.II configuration:
# CMAKE_BUILD_TYPE: DebugRelease
# BUILD_SHARED_LIBS: OFF
# CMAKE_INSTALL_PREFIX: C:/Program Files (x86)/deal.II
# CMAKE_SOURCE_DIR: D:/dealii-9.3.3
# (version 9.3.3)
# CMAKE_BINARY_DIR: D:/dealii-9.3.3/build
# CMAKE_CXX_COMPILER: MSVC 19.29.30140.0 on platform Windows AMD64
# C:/Program Files (x86)/Microsoft Visual
Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
# C++ language standard: C++14
# CMAKE_C_COMPILER: C:/Program Files (x86)/Microsoft Visual
Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
# CMAKE_GENERATOR: Visual Studio 16 2019
#
# Base configuration (prior to feature configuration):
# DEAL_II_CXX_FLAGS: /EHsc /bigobj /W3 /wd4068 /wd4244
/wd4267 /wd4996 /wd4355 /wd4800 /wd4146 /wd4667 /wd4520 /wd4700 /wd4789 /wd4808
/wd5037
# DEAL_II_CXX_FLAGS_RELEASE: /O2
# DEAL_II_CXX_FLAGS_DEBUG: /Zi /MDd /Od
# DEAL_II_LINKER_FLAGS:
# DEAL_II_LINKER_FLAGS_RELEASE:
# DEAL_II_LINKER_FLAGS_DEBUG:
# DEAL_II_DEFINITIONS: NOMINMAX
# DEAL_II_DEFINITIONS_RELEASE:
# DEAL_II_DEFINITIONS_DEBUG: DEBUG
# DEAL_II_USER_DEFINITIONS: NOMINMAX
# DEAL_II_USER_DEFINITIONS_REL:
# DEAL_II_USER_DEFINITIONS_DEB: DEBUG
# DEAL_II_INCLUDE_DIRS
# DEAL_II_USER_INCLUDE_DIRS:
# DEAL_II_BUNDLED_INCLUDE_DIRS:
# DEAL_II_LIBRARIES:
# DEAL_II_LIBRARIES_RELEASE:
# DEAL_II_LIBRARIES_DEBUG:
# DEAL_II_VECTORIZATION_WIDTH_IN_BITS: 0
# DEAL_II_HAVE_CXX14
#
# Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION
= ON):
# ( DEAL_II_WITH_64BIT_INDICES = OFF )
# ( DEAL_II_WITH_ADOLC = OFF )
# ( DEAL_II_WITH_ARBORX = OFF )
# ( DEAL_II_WITH_ARPACK = OFF )
# ( DEAL_II_WITH_ASSIMP = OFF )
# DEAL_II_WITH_BOOST set up with bundled packages
# BOOST_DEFINITIONS = BOOST_ALL_NO_LIB
# BOOST_USER_DEFINITIONS = BOOST_ALL_NO_LIB
# BOOST_BUNDLED_INCLUDE_DIRS =
D:/dealii-9.3.3/bundled/boost-1.70.0/include
# DEAL_II_WITH_COMPLEX_VALUES = ON
# ( DEAL_II_WITH_CUDA = OFF )
# ( DEAL_II_WITH_GINKGO = OFF )
# ( DEAL_II_WITH_GMSH = OFF )
# ( DEAL_II_WITH_GSL = OFF )
# ( DEAL_II_WITH_HDF5 = OFF )
# ( DEAL_II_WITH_KOKKOS = OFF )
# DEAL_II_WITH_LAPACK set up with external dependencies
# LAPACK_LIBRARIES =
d:/petsc-3.15.0/arch-mswin-c-debug/lib/libf2clapack.lib;d:/petsc-3.15.0/arch-mswin-c-debug/lib/libf2cblas.lib
# ( DEAL_II_WITH_METIS = OFF )
# DEAL_II_WITH_MPI set up with external dependencies
# MPI_VERSION = 2.0
# MPI_C_COMPILER = MPI_C_COMPILER-NOTFOUND
# MPI_CXX_COMPILER = MPI_CXX_COMPILER-NOTFOUND
# MPI_CXX_FLAGS =
# MPI_LINKER_FLAGS =
# MPI_INCLUDE_DIRS = D:/Microsoft SDKs/MPI/Include
# MPI_USER_INCLUDE_DIRS = D:/Microsoft SDKs/MPI/Include
# MPI_LIBRARIES = D:/Microsoft SDKs/MPI/Lib/x64/msmpi.lib
# DEAL_II_WITH_MUPARSER set up with bundled packages
# MUPARSER_BUNDLED_INCLUDE_DIRS =
D:/dealii-9.3.3/bundled/muparser_v2_2_4//include
# ( DEAL_II_WITH_OPENCASCADE = OFF )
# ( DEAL_II_WITH_P4EST = OFF )
# DEAL_II_WITH_PETSC set up with external dependencies
# PETSC_VERSION = 3.15.0.0
# PETSC_DIR = D:/petsc-3.15.0
# PETSC_INCLUDE_DIRS =
D:/petsc-3.15.0/include;D:/petsc-3.15.0/arch-mswin-c-debug/include;/cygdrive/d/petsc-3.15.0/include;/cygdrive/d/petsc-3.15.0/arch-mswin-c-debug/include;/cygdrive/d/Microsoft;SDKs/MPI/Include;SDKs/MPI/Include/x64
# PETSC_USER_INCLUDE_DIRS =
D:/petsc-3.15.0/include;D:/petsc-3.15.0/arch-mswin-c-debug/include;/cygdrive/d/petsc-3.15.0/include;/cygdrive/d/petsc-3.15.0/arch-mswin-c-debug/include;/cygdrive/d/Microsoft;SDKs/MPI/Include;SDKs/MPI/Include/x64
# PETSC_LIBRARIES =
D:/petsc-3.15.0/arch-mswin-c-debug/lib/libpetsc.lib
# ( DEAL_II_WITH_SCALAPACK = OFF )
# ( DEAL_II_WITH_SLEPC = OFF )
# ( DEAL_II_WITH_SUNDIALS = OFF )
# ( DEAL_II_WITH_SYMENGINE = OFF )
# ( DEAL_II_WITH_TBB = OFF )
# ( DEAL_II_WITH_TRILINOS = OFF )
# DEAL_II_WITH_UMFPACK set up with bundled packages
# UMFPACK_BUNDLED_INCLUDE_DIRS =
D:/dealii-9.3.3/bundled/umfpack/UMFPACK/Include;D:/dealii-9.3.3/bundled/umfpack/AMD/Include
# ( DEAL_II_WITH_ZLIB = OFF )
#
# Component configuration:
# ( DEAL_II_COMPONENT_DOCUMENTATION = OFF )
# DEAL_II_COMPONENT_EXAMPLES
# ( DEAL_II_COMPONENT_PACKAGE = OFF )
# ( DEAL_II_COMPONENT_PYTHON_BINDINGS = OFF )
#
###