Skip to content

Commit 2d8e20e

Browse files
committed
compilation with dealii9.5.2 successful
1 parent cfb949b commit 2d8e20e

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,11 @@ ENDIF()
385385
#DEAL_II_INITIALIZE_CACHED_VARIABLES()
386386

387387

388-
TARGET_INCLUDE_DIRECTORIES(${TARGETLIB} PUBLIC ${DEAL_II_INCLUDE_DIRS})
388+
TARGET_INCLUDE_DIRECTORIES(${TARGETLIB} PUBLIC ${DEAL_II_INCLUDE_RELDIR})
389389
IF("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
390-
TARGET_LINK_LIBRARIES (${TARGETLIB} PUBLIC ${DEAL_II_LIBRARIES_RELEASE})
390+
TARGET_LINK_LIBRARIES (${TARGETLIB} PUBLIC dealii::dealii_release)
391391
ELSE()
392-
TARGET_LINK_LIBRARIES (${TARGETLIB} PUBLIC ${DEAL_II_LIBRARIES_DEBUG})
392+
TARGET_LINK_LIBRARIES (${TARGETLIB} PUBLIC dealii::dealii_debug)
393393
ENDIF()
394394

395395
IF (WITH_CUSTOMIZED_DEALII)

doc/manual/installation.tex

+1-4
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,7 @@ \subsubsection{Instructions for deal.II}
153153

154154
\begin{enumerate}
155155

156-
\item Obtain the customized version of deal.II library via
157-
\begin{verbatim}
158-
$ git clone -b dealiiCustomizedCUDARelease https://github.com/dftfeDevelopers/dealii.git
159-
\end{verbatim}
156+
\item Obtain the latest release version (9.5.2) of deal.II
160157

161158
\item In addition to requiring C, C++ and Fortran compilers, MPI library, and CMake, deal.II additionally requires BOOST library. If not found externally, cmake will resort to the bundled BOOST that comes along with deal.II. Based on our experience, we recommend to use the deal.II's bundled boost (enforced by unsetting/unloading external BOOST library environment paths) to avoid compilation issues. Please do not install deal.II with GPU support as that is not needed by DFT-FE. Further, when installing deal.II for (DFT-FE with GPU support), one must use \verb|-DDEAL_II_ALLOW_PLATFORM_INTROSPECTION=OFF| to avoid compilation failure of DFT-FE.
162159

setupDevelopPetsc.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ SRC=`dirname $0` # location of source directory
1717
# and optimization flag
1818

1919
#Paths for required external libraries
20-
dealiiPetscRealDir="/home/vikramg/DFT-softwares-gcc/dealii/install_real_cpu"
21-
dealiiPetscComplexDir="/home/vikramg/DFT-softwares-gcc/dealii/install_complex_cpu"
20+
dealiiPetscRealDir="/home/vikramg/DFT-softwares-gcc/dealii9.5.2/install_real_cpu"
21+
dealiiPetscComplexDir="/home/vikramg/DFT-softwares-gcc/dealii9.5.2/install_complex_cpu"
2222
alglibDir="/home/vikramg/DFT-softwares-gcc/alglib/alglib-cpp/src"
2323
libxcDir="/home/vikramg/DFT-softwares-gcc/libxc/libxc-5.2.3/install_libxc5.2.3"
2424
spglibDir="/home/vikramg/DFT-softwares-gcc/spglib/install"
@@ -46,7 +46,7 @@ withGPUAwareMPI=OFF #Please use this option with care
4646
withDCCL=OFF
4747
withMDI=OFF
4848
withTorch=OFF
49-
withCustomizedDealii=ON
49+
withCustomizedDealii=OFF
5050

5151
#Compiler options and flags
5252
cxx_compiler=/sw/pkgs/arc/stacks/gcc/10.3.0/openmpi/4.1.6/bin/mpicxx #sets DCMAKE_CXX_COMPILER

setupUser.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ withGPUAwareMPI=OFF #Please use this option with care
4747
withDCCL=ON
4848
withMDI=OFF
4949
withTorch=OFF
50-
withCustomizedDealii=ON
50+
withCustomizedDealii=OFF
5151

5252
#Compiler options and flags
5353
cxx_compiler=mpic++ #sets DCMAKE_CXX_COMPILER

src/dft/dft.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -4429,7 +4429,8 @@ namespace dftfe
44294429
unsigned int FEOrderElectro,
44304430
dftfe::utils::MemorySpace memorySpace>
44314431
const std::vector<std::vector<double>> &
4432-
dftClass<FEOrder, FEOrderElectro, memorySpace>::getImageAtomLocationsCart() const
4432+
dftClass<FEOrder, FEOrderElectro, memorySpace>::getImageAtomLocationsCart()
4433+
const
44334434
{
44344435
return d_imagePositionsTrunc;
44354436
}

src/dftfeWrapper.cc

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// deal.II header
2222
//
2323
#include <deal.II/base/data_out_base.h>
24+
#include <deal.II/base/multithread_info.h>
2425
#include <p4est_bits.h>
2526

2627
#ifdef USE_PETSC

0 commit comments

Comments
 (0)