Vasp 6.5.1 DFT-D4 installation problem

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
lkasillas
Newbie
Newbie
Posts: 4
Joined: Tue Nov 22, 2022 12:27 pm

Vasp 6.5.1 DFT-D4 installation problem

#1 Post by lkasillas » Tue Nov 18, 2025 10:23 am

Hi,
I am building vasp 6.5.1 with intel oneapi compilers 2024.

I have built DFT4D from cmake using the same intel compilers, following the instructions from: https://dftd4.readthedocs.io/en/latest/ ... stallation
and passed all the tests.

I have modified the makefile.include with (putting the DFT4D install path):

Code: Select all

CPP_OPTIONS += -DDFTD4 
DFTD4_ROOT  ?= /path/to/your/dft4/installation
# version >3.6.0 built and installed with meson
LLIBS       += -L$(DFTD4_ROOT)/lib64 -ldftd4
LLIBS       += -L$(DFTD4_ROOT)/lib64 -lmctc-lib
LLIBS       += -L$(DFTD4_ROOT)/lib64 -lmulticharge
INCS        += -I$(DFTD4_ROOT)/include

But I get the following errors:

Code: Select all

subdftd4.F(86): error #6633: The type of the actual argument differs from the type of the dummy argument.   [MODEL]
      call new_d4_model(model, struct)
------------------------^
subdftd4.F(86): error #6633: The type of the actual argument differs from the type of the dummy argument.   [STRUCT]
      call new_d4_model(model, struct)
-------------------------------^
subdftd4.F(86): error #6631: A non-optional actual argument must be present when invoking a procedure with an explicit interface.   [MOL]
      call new_d4_model(model, struct)
-----------^
subdftd4.F(86): error #7976: An allocatable dummy argument may only be argument associated with an allocatable actual argument.   [MODEL]
      call new_d4_model(model, struct)

Any suggestions on what I am messing up?

All the best,

Luis


fabien_tran1
Global Moderator
Global Moderator
Posts: 502
Joined: Mon Sep 13, 2021 11:02 am

Re: Vasp 6.5.1 DFT-D4 installation problem

#2 Post by fabien_tran1 » Tue Nov 18, 2025 11:44 am

Hi,

Unfortunately, the last DFT-D4 release breaks the API (https://github.com/dftd4/dftd4/releases/tag/v4.0.0). We will try to fix the problem for the next VASP release. For the moment, the solution is to use the previous DFT-D4 version (https://github.com/dftd4/dftd4/releases/tag/v3.7.0).


lkasillas
Newbie
Newbie
Posts: 4
Joined: Tue Nov 22, 2022 12:27 pm

Re: Vasp 6.5.1 DFT-D4 installation problem

#3 Post by lkasillas » Tue Nov 18, 2025 2:06 pm

Thanks!
I managed to build it, but I had to add the following line to the makefile.include for the intel compiler to work

Code: Select all

INCS        += -I$(DFTD4_ROOT)/include/dftd4/Intel-2021.0.0.20231010/

fabien_tran1
Global Moderator
Global Moderator
Posts: 502
Joined: Mon Sep 13, 2021 11:02 am

Re: Vasp 6.5.1 DFT-D4 installation problem

#4 Post by fabien_tran1 » Tue Nov 18, 2025 2:33 pm

Were you able to compile v3.7.0 or v4.0.0?


lkasillas
Newbie
Newbie
Posts: 4
Joined: Tue Nov 22, 2022 12:27 pm

Re: Vasp 6.5.1 DFT-D4 installation problem

#5 Post by lkasillas » Tue Nov 18, 2025 4:28 pm

Oh sorry, I managed with v3.7.0


Post Reply