quantum-espresso/XClib
giannozz 5673f1a842 Merge branch 'fix-gnu-warning' into 'develop'
Tackle GNU warnings.

See merge request QEF/q-e!1439
2021-06-15 16:31:18 +00:00
..
Ford Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
test_input_files Add XClib unit tests. 2021-05-02 16:00:35 -05:00
CMakeLists.txt Add unit test runner. 2021-05-23 09:58:06 -05:00
Makefile XClib - output unit fix 2021-02-15 20:23:10 +01:00
README.BEEF Doc: one misspell fixed, reference to github repository added 2021-01-22 12:55:33 +00:00
README.TEST XClib test docs update 2021-01-20 14:07:41 +01:00
beefleg.h Move libbeef files back to XClib due to Makefile. 2021-01-20 13:20:07 -06:00
beefun.c Move libbeef files back to XClib due to Makefile. 2021-01-20 13:20:07 -06:00
dft_mod.f90 Merge branch 'fix-gnu-warning' into 'develop' 2021-06-15 16:31:18 +00:00
make.depend XClib - output unit fix 2021-02-15 20:23:10 +01:00
pbecor.c Move libbeef files back to XClib due to Makefile. 2021-01-20 13:20:07 -06:00
pbecor.h Move libbeef files back to XClib due to Makefile. 2021-01-20 13:20:07 -06:00
qe_constants.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
qe_drivers_d_gga.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
qe_drivers_d_lda_lsda.f90 fix for the OMP statements 2021-02-11 18:43:33 +01:00
qe_drivers_gga.f90 Tackle GNU warnings. 2021-06-11 23:29:34 -05:00
qe_drivers_lda_lsda.f90 fix for the OMP statements 2021-02-11 18:43:33 +01:00
qe_drivers_mgga.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
qe_funct_corr_gga.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
qe_funct_corr_lda_lsda.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
qe_funct_exch_gga.f90 fortran erf replaced in XClib 2021-02-18 17:05:10 +01:00
qe_funct_exch_lda_lsda.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
qe_funct_mgga.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
qe_kind.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
xc_beef_interface.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
xc_input_params_mod.f90 rename RPBX HHNX to avoid a conflict with PBX 2021-04-10 14:36:11 +09:00
xc_lib.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
xc_wrapper_d_gga.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
xc_wrapper_d_lda_lsda.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
xc_wrapper_gga.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
xc_wrapper_lda_lsda.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
xc_wrapper_mgga.f90 Aligned gpu-develop branch with develop from QEF/q-e. 2021-01-19 22:16:25 +00:00
xclib_error.f90 XClib - output unit fix 2021-02-15 20:23:10 +01:00
xclib_test.f90 fortran erf replaced in XClib 2021-02-18 17:05:10 +01:00
xclib_utils_and_para.f90 XClib - output unit fix 2021-02-15 20:23:10 +01:00

README.TEST

xclib_test.x is a testing program for the XClib library.

To compile the test program, once you have properly configured QE,
inside the directory XClib type:

	make test

Then you can run tests using commands like:

	./xclib_test.x < input_file > output_file

Four options available:

* dft-info: infos on the input dft are provided. If the functionals
            functionals are from libxc the external parameters, when
            present, are listed with a brief description and their
            default value.
            Example of input_file content:

            &INPUT_NAMELIST
                test='dft-info'
                dft1='mgga_x_scan mgga_c_scan'
            /
            
* gen-benchmark: the program generates a set of data to compare the
                 XC output to.
                 Example of input file content:
                 
                 &INPUT_NAMELIST
                    test='gen-benchmark'
                    family='GGA'
                    dft1='PBE'
                    nspin=2
                    DF_OK=.FALSE.
                 /

* exe-benchmark: the program takes as input the data file generated
                 previously with the 'gen-benchmark' option and
                 compares the output of the XC routines.

* dft-comparison: the program compares two different DFTs on a large 
                  grid of points. Max, min and average percentage 
                  difference between the two dft outputs (energy and
                  potential) are provided and the points of the grid
                  where the two output differ are shown. This option
                  can be used, for example, to find differences between
                  internal QE functionals and the libxc ones.
                  Example of input file content:

                  &INPUT_NAMELIST
                     test='dft-comparison',
                     nspin=2,
                     family='LDA',
                     DF_OK=.FALSE.,
                     dft1='sla pz',
                     dft2='lda_x lda_c_pz'
                  /

The testing program is available for LDA, GGA and MGGA functionals. It 
also tests the potential derivatives for LDA (dmxc) and GGA (dgcxc) when
the DF_OK variable is set to TRUE.