MFEM  v3.3
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
config.hpp
Go to the documentation of this file.
1 // Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
2 // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
3 // reserved. See file COPYRIGHT for details.
4 //
5 // This file is part of the MFEM library. For more information and source code
6 // availability see http://mfem.org.
7 //
8 // MFEM is free software; you can redistribute it and/or modify it under the
9 // terms of the GNU Lesser General Public License (as published by the Free
10 // Software Foundation) version 2.1 dated February 1999.
11 
12 
13 // Support out-of-source builds: if MFEM_BUILD_DIR is defined, load the config
14 // file MFEM_BUILD_DIR/config/_config.hpp.
15 //
16 // Otherwise, use the local file: _config.hpp.
17 
18 #ifdef MFEM_BUILD_DIR
19 #define MFEM_QUOTE(a) #a
20 #define MFEM_MAKE_PATH(x,y) MFEM_QUOTE(x/y)
21 #include MFEM_MAKE_PATH(MFEM_BUILD_DIR,config/_config.hpp)
22 #else
23 #include "_config.hpp"
24 #endif
25 
26 // Check dependencies:
27 
28 // Options that require MPI
29 #ifndef MFEM_USE_MPI
30 #ifdef MFEM_USE_SUPERLU
31 #error Building with SuperLU_DIST (MFEM_USE_SUPERLU=YES) requires MPI (MFEM_USE_MPI=YES)
32 #endif
33 #ifdef MFEM_USE_PETSC
34 #error Building with PETSc (MFEM_USE_PETSC=YES) requires MPI (MFEM_USE_MPI=YES)
35 #endif
36 #endif // MFEM_USE_MPI not defined