~albertog/libgridxc/no-globals

« back to all changes in this revision

Viewing changes to src/cellxc.F90

  • Committer: Alberto Garcia
  • Date: 2018-10-31 17:29:31 UTC
  • mfrom: (30.2.10 libgridxc)
  • Revision ID: albertog@icmab.es-20181031172931-ck7gqooaftfvzqv3
Sync to trunk-40

Show diffs side-by-side

added added

removed removed

Lines of Context:
484
484
        ELSE
485
485
          xc_ispin = XC_POLARIZED
486
486
        ENDIF
 
487
 
487
488
        if ((irel == 1) .and. (xc_id == 1)) then
488
 
#ifdef LIBXC4
 
489
#include "xc_version.h"
 
490
#if    XC_MAJOR_VERSION == 4           
489
491
           ! Change LDA_X to LDA_X_REL (532)
490
492
           ! This was introduced in libXC v4
491
493
           xc_id = 532
496
498
          ! general function, and include the default 4/3 factor
497
499
          ! that gives standard exchange (implicit in the above
498
500
          ! initialization call)
499
 
           call xc_f90_lda_x_set_par(xc_func(nf), 4.0_dp/3.0_dp,    &
500
 
                                     XC_RELATIVISTIC, 0.0_dp)
 
501
           call xc_f90_lda_x_set_par(xc_func(nf), 4.0_dp/3.0_dp,   &
 
502
                                    XC_RELATIVISTIC, 0.0_dp)
501
503
#endif
502
504
        endif
 
505
 
503
506
        is_libxc(nf) = .true.
504
507
#else
505
508
        call die("Libxc not compiled in. Cannot handle "// trim(XCauth(nf)))