Skip to content

Commit

Permalink
Merge pull request #15308 from masterleinad/test_icpx
Browse files Browse the repository at this point in the history
Test icpx instead of icpc
  • Loading branch information
marcfehling committed Jun 6, 2023
2 parents 5fe3a16 + 9662f5a commit 1a7fb37
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ jobs:
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_CXX_COMPILER=icpc \
-D DEAL_II_CXX_FLAGS='-Werror' \
-D CMAKE_CXX_COMPILER=icpx \
-D DEAL_II_CXX_FLAGS='-Werror -fno-finite-math-only' \
-D DEAL_II_EARLY_DEPRECATIONS=ON \
-D DEAL_II_WITH_MPI=ON \
-D DEAL_II_WITH_LAPACK=ON \
Expand Down
2 changes: 1 addition & 1 deletion include/deal.II/grid/grid_reordering.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ DEAL_II_NAMESPACE_OPEN
* this class. Usage of the old-style numbering is deprecated.
*/
template <int dim, int spacedim = dim>
class DEAL_II_DEPRECATED GridReordering
class GridReordering
{
public:
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3857,7 +3857,7 @@ MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
// on element faces or vertices and therefore, the partitioner is fine
IndexSet locally_relevant_dofs(dof_handler_fine.n_dofs());
if (!this->fine_element_is_continuous &&
!dof_handler_fine.get_fe().degree == 0)
dof_handler_fine.get_fe().degree != 0)
locally_relevant_dofs.add_indices(global_dof_indices.begin(),
global_dof_indices.end());

Expand Down
11 changes: 6 additions & 5 deletions source/base/qprojector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -769,11 +769,12 @@ QProjector<2>::project_to_all_faces(const ReferenceCell & reference_cell,
{
const auto support_points_line =
[](const auto &face, const auto &orientation) -> std::vector<Point<2>> {
std::array<Point<2>, 2> vertices;
std::copy_n(face.first.begin(), face.first.size(), vertices.begin());
const auto temp =
ReferenceCells::Line.permute_according_orientation(vertices,
orientation);
// MSVC struggles when using face.first.begin()
const Point<2, double> * vertices_ptr = &face.first[0];
ArrayView<const Point<2>> vertices(vertices_ptr, face.first.size());
const auto temp =
ReferenceCells::Line.permute_by_combined_orientation(vertices,
orientation);
return std::vector<Point<2>>(temp.begin(),
temp.begin() + face.first.size());
};
Expand Down

0 comments on commit 1a7fb37

Please sign in to comment.