Clarification Request on Configuring DFT-D4 Support in VASP.
Posted: Tue Feb 27, 2024 12:25 pm
Dear VASP Forum Members,
I am currently setting up VASP with support for the DFT-D4 and have encountered some discrepancies in the setup instructions that I hope to clarify with your expertise.
On the VASP Wiki, specifically in the section dedicated to optional DFT-D4 configuration, the instructions provided are as follows:
Conversely, the DFTD4 GitHub repository suggests a somewhat different approach for incorporating DFT-D4 support into VASP:
Upon further reflection, there might be a slight oversight in the VASP Wiki's instructions, assuming the build directory name correctly corresponds to the compilation directory. A presumed correction would look something like this:
Moreover, it seems the manual setting method advised by the VASP Wiki may offer less portability compared to the DFTD4 GitHub repository's recommendation, which leverages pkg-config to ascertain the necessary paths and flags automatically.
Your expert guidance on this matter would be immensely appreciated. Thank you very much for your time and assistance. I eagerly await your informed perspectives.
Best regards,
Zhao
I am currently setting up VASP with support for the DFT-D4 and have encountered some discrepancies in the setup instructions that I hope to clarify with your expertise.
On the VASP Wiki, specifically in the section dedicated to optional DFT-D4 configuration, the instructions provided are as follows:
Code: Select all
CPP_OPTIONS += -DDFTD4
DFTD4_ROOT ?= /path/to/your/dft4/installation
LLIBS += -L$(DFTD4_ROOT)/build -ldftd4
INCS += -I$(DFTD4_ROOT)/libdftd4.a.p
Code: Select all
CPP_OPTIONS += -DDFTD4
LLIBS += $(shell pkg-config --libs dftd4)
INCS += $(shell pkg-config --cflags dftd4)
Code: Select all
CPP_OPTIONS += -DDFTD4
DFTD4_ROOT ?= /path/to/your/dft4/installation
LLIBS += -L$(DFTD4_ROOT)/build -ldftd4
INCS += -I$(DFTD4_ROOT)/build/libdftd4.a.p
Your expert guidance on this matter would be immensely appreciated. Thank you very much for your time and assistance. I eagerly await your informed perspectives.
Best regards,
Zhao