Skip to content

Commit 20b3610

Browse files
committed
Several fixes for MUMPS, TRILINOS.
1 parent edd24b4 commit 20b3610

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

CMake.vars.example.Windows

+5
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,14 @@
4141
# MUMPS
4242
# Sequential version of MUMPS may be enabled by setting YES on the following line
4343
# and pointing to the package installation directory with MUMPS_ROOT.
44+
# Winblas (any BLAS library) is also necessary.
45+
# For Win64 platform, ifconsol.lib is also necessary (part of the hermes-windows repository).
4446
set(WITH_MUMPS NO)
4547
set(MUMPS_ROOT "d:/hpfem/hermes/dependencies")
4648
set(WINBLAS_ROOT "d:/hpfem/hermes/dependencies")
49+
if(${CMAKE_CL_64}) # This means that the following is only for 64-bit build.
50+
set(IFCONSOL_LIB_DIRECTORY "d:/hpfem/hermes/dependencies/lib")
51+
endif(${CMAKE_CL_64})
4752

4853
# Trilinos
4954
set(WITH_TRILINOS NO)

doc/src/installation/matrix_solvers/mumps.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Installation of MUMPS using MSVC is rather easy:
4343

4444
- preparation
4545

46-
- download MUMPS from http://mumps.enseeiht.fr/MUMPS_4.10.0.tar.gz (if the link does not work, look for 4.10 version of MUMPS)
46+
- download MUMPS from `<http://mumps.enseeiht.fr/MUMPS_4.10.0.tar.gz`_ (if the link does not work, look for 4.10 version of MUMPS)
4747
- download WinMUMPS utility from `<http://sourceforge.net/projects/winmumps/>`_.
4848
- download a Fortran compiler (e.g. `<http://software.intel.com/en-us/intel-fortran-studio-xe-evaluation-options)>`_.
4949
- download BLAS (Debug/Release, static/dynamic, 32-bit/64-bit as you like) from `<http://icl.cs.utk.edu/lapack-for-windows/lapack/index.html#libraries>`_.

hermes_common/CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@ project(hermes_common)
202202
# Add a target for a specified version of the Hermes library (REAL/COMPLEX, RELEASE/DEBUG),
203203
# and set its build properties (compile and link flags, installation directories).
204204
macro(BUILD_COMMON_LIB HERMES_COMMON_LIB BUILD_FLAGS)
205+
206+
if(${CMAKE_CL_64})
207+
if(WITH_MUMPS)
208+
LINK_DIRECTORIES(${IFCONSOL_LIB_DIRECTORY})
209+
endif()
210+
endif()
211+
205212
if(${HERMES_STATIC_LIBS})
206213
add_library(${HERMES_COMMON_LIB} ${SRC} ${HEADERS})
207214
else()

hermes_common/include/solvers/interfaces/epetra.h

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <EpetraExt_MatrixMatrix.h>
3737
#include <EpetraExt_RowMatrixOut.h>
3838
#include <EpetraExt_VectorOut.h>
39+
#include <Teuchos_TestForException.hpp>
3940

4041
namespace Hermes
4142
{

0 commit comments

Comments
 (0)