quantum-espresso/XClib
Fabrizio Ferrari 7448795d33 quick fix to issue 205 2021-07-15 12:08:15 +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 minor fixes 2021-07-13 17:43:08 +02: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 libxc init - fix for nspin=4 case 2021-07-14 20:16:25 +02: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 XClib-acc - omp restored 2021-07-09 18:21:33 +02:00
qe_drivers_lda_lsda.f90 XClib-acc - omp restored 2021-07-09 18:21:33 +02: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 XClib-acc - GGA corr pol 2021-07-05 18:27:20 +02:00
qe_funct_corr_lda_lsda.f90 XClib-acc - LDA unpol 2021-07-05 16:46:48 +02:00
qe_funct_exch_gga.f90 XClib-acc - GGA exch pol 2021-07-05 17:59:29 +02:00
qe_funct_exch_lda_lsda.f90 XClib-acc - LDA unpol 2021-07-05 16:46:48 +02: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 quick fix to issue 205 2021-07-15 12:08:15 +00: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 libxc init - fix for nspin=4 case 2021-07-14 20:16:25 +02: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.
------
This is still a prototype version. The next release will include a simpler 
and more stable version.
------

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                [ serial ]
        mpirun -np=2 xclib_test.x < input_file > output file     [parallel]

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.