&GLOBAL
  PROJECT  G0W0_kpoints_from_Gamma
  PRINT_LEVEL MEDIUM
  RUN_TYPE ENERGY
  &TIMINGS
     THRESHOLD 0.01
  &END
&END GLOBAL
&FORCE_EVAL
  METHOD Quickstep
  &DFT
    BASIS_SET_FILE_NAME  HFX_BASIS
    SORT_BASIS EXP
    POTENTIAL_FILE_NAME  GTH_POTENTIALS
    &MGRID
      CUTOFF  100
      REL_CUTOFF  20
    &END MGRID
    &QS
      METHOD GPW
      EPS_DEFAULT 1.0E-15
      EPS_PGF_ORB 1.0E-15
    &END QS
    &SCF
      SCF_GUESS RESTART
      EPS_SCF 1.0E-5
      MAX_SCF 100
      &PRINT
        &RESTART ON
        &END
      &END
      ADDED_MOS -1
    &END SCF
    &XC
      &XC_FUNCTIONAL PBE
      &END XC_FUNCTIONAL
      &WF_CORRELATION
        &INTEGRALS
          SIZE_LATTICE_SUM 3
        &END INTEGRALS
        &LOW_SCALING
          KPOINTS 4 1 4
        &END LOW_SCALING
        &RI_RPA
          RPA_NUM_QUAD_POINTS  6
          &GW
           CORR_OCC   1
           CORR_VIRT  1
           CROSSING_SEARCH NEWTON
           ANALYTIC_CONTINUATION TWO_POLE
           RI_SIGMA_X FALSE
           KPOINTS_SELF_ENERGY 2 2 1
           &KPOINT_SET
             SPECIAL_POINT  0.5   0.0   0.0
             SPECIAL_POINT  0.0   0.0   0.0
             NPOINTS 3
           &END
          &END GW
          &HF
            FRACTION 1.0
            &SCREENING
              EPS_SCHWARZ 1.0E-6
              SCREEN_ON_INITIAL_P TRUE
            &END
            &INTERACTION_POTENTIAL
              POTENTIAL_TYPE TRUNCATED
              CUTOFF_RADIUS  3.9
              T_C_G_DATA t_c_g.dat
            &END
            &MEMORY
              ! In MB per MPI rank.. use as much as need to get in-core operation
              MAX_MEMORY 0
              EPS_STORAGE_SCALING 0.1
            &END
          &END
        &END RI_RPA
      &END
    &END XC
  &END DFT
  &SUBSYS
    &CELL
      ABC [angstrom]  8.000   8.000  8.000
      MULTIPLE_UNIT_CELL  1 1 1
      PERIODIC XZ
    &END CELL
    &KIND H
      BASIS_SET ORB        DZVP-GTH
      BASIS_SET RI_AUX RI_DZVP-GTH
      POTENTIAL        GTH-PBE-q1
    &END KIND
    &KIND O
      BASIS_SET ORB        DZVP-GTH
      BASIS_SET RI_AUX RI_DZVP-GTH
      POTENTIAL        GTH-PBE-q6
    &END KIND
    &TOPOLOGY
      MULTIPLE_UNIT_CELL  1 1 1
    &END TOPOLOGY
    &COORD
      H  0.0 -0.5 -4.5
      O  0.5  0.0  4.5
      H  0.0  0.5 -4.5
    &END COORD
  &END SUBSYS
&END FORCE_EVAL
