Skip to content

Commit

Permalink
MueLu: Fix compile issues on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Glusa <[email protected]>
  • Loading branch information
cgcgcg committed Feb 26, 2025
1 parent 8704463 commit 8ac9b90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
#include <BelosTpetraAdapter.hpp>
#endif

#include "Kokkos_Core.hpp"

namespace MueLu {

/*!
Expand Down Expand Up @@ -95,7 +97,7 @@ class ShiftedLaplacian : public BaseClass {
, Nullspace_("constant")
, numLevels_(5)
, coarseGridSize_(100)
, omega_(2.0 * M_PI)
, omega_(2.0 * Kokkos::numbers::pi_v<double>)
, iters_(500)
, blksize_(1)
, tol_(1.0e-4)
Expand Down
4 changes: 4 additions & 0 deletions packages/muelu/src/Utils/MueLu_Utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

#include <string>
#include <locale>
#ifdef _WIN32
#define NOMINMAX
#endif
#include <algorithm>

#ifdef HAVE_MUELU_EPETRAEXT
#include "EpetraExt_Transpose_RowMatrix.h"
Expand Down

0 comments on commit 8ac9b90

Please sign in to comment.