Library Mode TestΒΆ
Source directory: examples/library_mode_test
This example demonstrates calling the DMFT library interface from Fortran. It is intended for developers integrating DMFTwDFT into a DFT code for charge self-consistency.
Included files include:
test.F90Makefilemake.incdmft_params.datsig.inpwannier90.eigDMFT_mu.outINFO_DFT_loophistorical run outputs and submission files
The example program builds an 8 x 8 x 8 uniform k-mesh, assigns normalized k-point weights, calls Compute_DMFT, and prints representative band_win, DMFT_eval, and DMFT_evec values.
The core call in test.F90 is:
call Compute_DMFT(nkpts, num_wann, kpts, wght, band_win, DMFT_eval, DMFT_evec)
Before compiling:
Build DMFTwDFT so
libdmft.ais available.Generate or provide the matching
wannier90.chkfile. The example README notes this requirement.Ensure
make.incpoints to the same compiler, MPI, and library stack used to build DMFTwDFT.Make
libdmft.avisible to the link line, for example by copying it into the example directory or editingLIBS/library paths.
Compile and run from a copied and edited example directory:
make
mpirun -np 4 ./test.x
The historical submit.sh is site-specific and should be treated as a template only.
For the full library interface description and charge-density equations, see Library Mode.