Reading from topics in mailing lists, it seems Windows is not the preferred 
platform. However for reasons of convenience (e.g. working from a laptop) I 
would like to build the code with MS Visual Studio. I followed the 
instructions in https://github.com/dealii/dealii/wiki/Windows for "Using 
deal.II on native Windows". As mentioned there, I am using MSVC v15.0, 2017 
Community edition. It seems to go well except for one problem :
Compilation fails in the code include\deal.ii\grid\grid_tools.h, in the 
function declaration in line 1100:
std::pair<typename Triangulation<dim, spacedim>::active_cell_iterator, 
Point<dim> >
  find_active_cell_around_point (const Cache<dim,spacedim>                  
                       &cache,
                                 const Point<spacedim>                      
                       &p,
                                 const typename Triangulation<dim, 
spacedim>::active_cell_iterator &cell_hint=typename Triangulation<dim, 
spacedim>::active_cell_iterator(),
                                 const std::vector<bool>                    
                       &marked_vertices = std::vector<bool>());
>From Google, it seems that using "designated initializers" such as const 
std::vector<bool> &marked_vertices = std::vector<bool>() in the function 
declaration in the header file is not allowed in Visual Studio. It needs 
building with C99 support which is not there. The build process throws a 
few more errors but it is mostly in .cc files that use the above function. 
I think there is one more function in the same file (grid_tools.h) where 
"designated initializers" are used and compilation fails on them as well. I 
am very poor at MS Visual Studio. Could anyone well versed in this area 
suggest a workaround for the above problem ? Also are there any pre-built 
binaries / libraries for use with Windows ?

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to