From 1c364d20115d4027ecdfb871e8e757f44ab90874 Mon Sep 17 00:00:00 2001 From: Lukas Korous Date: Fri, 13 Feb 2015 14:39:10 +0100 Subject: [PATCH] Add proper data types to sparse_direct. --- include/deal.II/lac/sparse_direct.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/deal.II/lac/sparse_direct.h b/include/deal.II/lac/sparse_direct.h index f0126fec85..e057bcddd5 100644 --- a/include/deal.II/lac/sparse_direct.h +++ b/include/deal.II/lac/sparse_direct.h @@ -26,6 +26,12 @@ #include #include +#ifdef DEAL_II_WITH_UMFPACK +# include +#endif +#ifndef SuiteSparse_long +#define SuiteSparse_long long int +#endif DEAL_II_NAMESPACE_OPEN @@ -291,9 +297,11 @@ private: /** * The arrays in which we store the data for the solver. + * SuiteSparse_long has to be used here for Windows 64 build, + * if we used only long int, compilation would fail. */ - std::vector Ap; - std::vector Ai; + std::vector Ap; + std::vector Ai; std::vector Ax; /** -- 2.39.5