[DFTB-Plus-User] Compiling

Bálint Aradi aradi at uni-bremen.de
Tue Aug 17 15:16:48 CEST 2021


Dear Jay,

welcome in the DFTB+ world! :-) Actually, DFTB+ has D3 functionality 
also without the DFTD3 library, but apparently, we have overlooked that 
it is missing in the documentation. I've created an issue for this, we 
will fix it:

https://github.com/dftbplus/dftbplus/issues/838

The D3 dispersion without the library is called the SimpleDftD3 
dispersion model. An example input can be found here:

https://github.com/dftbplus/dftbplus/blob/master/test/app/dftb%2B/dispersion/2H2O_sdftd3/dftb_in.hsd

but note, that the values specified there are non-physical fake values. 
You would have to specify the correct one for your system. (Actually, 
you only have to specify s8, a1 and a2, all other values have defaults).


As for the compilation: We do not support gcc6, please use a more recent 
GNU-compiler (gcc 9 or above) to compile the code.

Best regards,

Bálint


On 17.08.21 14:18, Jay Johal wrote:
> Hi all,
> 
> I need to use the dftd3 dispersion which doesn't seem to be in the 
> precompiled version, so I tried to compile from source. However, I am 
> getting the below error with this command:
> 
> cmake --build _build -- VERBOSE=1
> 
> [  8%] Building Fortran object 
> external/ddcosmo/CMakeFiles/ddcosmo_objlib.dir/ddcosmo_core.F90.o
> cd /home/xxx/dftbplus/_build/external/ddcosmo && 
> /local/software/gcc/6.4.0/bin/gfortran 
>   -I/home/xxx/dftbplus/_build/external/ddcosmo/include -g -O2 
> -funroll-all-loops -Jinclude -fopenmp -c 
> /home/xxx/dftbplus/external/ddcosmo/ddcosmo_core.F90 -o 
> CMakeFiles/ddcosmo_objlib.dir/ddcosmo_core.F90.o
> /home/xxx/dftbplus/external/ddcosmo/ddcosmo_core.F90:761:12:
> 
>         !$omp simd
>              1
> Error: OpenMP directives at (1) may not appear in PURE or ELEMENTAL 
> procedures
> gmake[2]: *** 
> [external/ddcosmo/CMakeFiles/ddcosmo_objlib.dir/ddcosmo_core.F90.o] Error 1
> gmake[2]: Leaving directory `/mainfs/home/xxx/dftbplus/_build'
> gmake[1]: *** [external/ddcosmo/CMakeFiles/ddcosmo_objlib.dir/all] Error 2
> gmake[1]: Leaving directory `/mainfs/home/xxx/dftbplus/_build'
> gmake: *** [all] Error 2
> 
> Below are the modules I have loaded, along with python 3.7
> 1) gcc/6.4.0   2) openmpi/3.1.4/gcc   3) cmake/3.20.2   4) gnumake/4.2
> 
> Can anyone suggest what I can do to fix this? I am very new to using 
> dftb+, having just done some of the example recipes using the 
> precompiled version.
> 
> I am following this page 
> https://github.com/dftbplus/dftbplus/blob/21.1/INSTALL.rst 
> <https://github.com/dftbplus/dftbplus/blob/21.1/INSTALL.rst>, and included
> 
> ./utils/get_opt_externals ALL
> 
> Thank You
> Jay
> 
> _______________________________________________
> DFTB-Plus-User mailing list
> DFTB-Plus-User at mailman.zfn.uni-bremen.de
> https://mailman.zfn.uni-bremen.de/cgi-bin/mailman/listinfo/dftb-plus-user
> 


-- 
Dr. Bálint Aradi
Bremen Center for Computational Materials Science, University of Bremen
http://www.bccms.uni-bremen.de/cms/people/b-aradi/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.zfn.uni-bremen.de/pipermail/dftb-plus-user/attachments/20210817/f4d85e63/attachment.sig>


More information about the DFTB-Plus-User mailing list