&GLOBAL
  PROJECT hf-chain 
  RUN_TYPE ENERGY
  PRINT_LEVEL LOW
&END GLOBAL
&FORCE_EVAL
  METHOD QS
  &DFT
    POTENTIAL_FILE_NAME ../../../data/GTH_POTENTIALS
    BASIS_SET_FILE_NAME ../../../data/GTH_BASIS_SETS
    &QS
      ALMO_SCF T
      EPS_DEFAULT 1.0E-8 ! 1.0E-12
    &END QS
    
    &ALMO_SCF
      EPS_FILTER                 1.0E-8
      ALMO_ALGORITHM             DIAG
      ALMO_SCF_GUESS             ATOMIC

      &ALMO_OPTIMIZER_DIIS
        MAX_ITER                 30
        EPS_ERROR                5.0E-4
        N_DIIS                   7
      &END ALMO_OPTIMIZER_DIIS
      
      DELOCALIZE_METHOD          XALMO_SCF
      XALMO_R_CUTOFF_FACTOR      1.2
      
      &XALMO_OPTIMIZER_PCG
        MAX_ITER                 100
        EPS_ERROR                5.0E-4
        CONJUGATOR               FLETCHER
        LIN_SEARCH_EPS_ERROR     0.05
        LIN_SEARCH_STEP_SIZE_GUESS 0.1
        MAX_ITER_OUTER_LOOP      0
      &END XALMO_OPTIMIZER_PCG
      
    &END ALMO_SCF
    
    &MGRID
      CUTOFF 200 ! 320
      NGRIDS 5
    &END MGRID
    &XC
      &XC_FUNCTIONAL BLYP
      &END XC_FUNCTIONAL
    &END XC
  &END DFT
  &SUBSYS
    &CELL
@INCLUDE 'FH-chain.cell'
      MULTIPLE_UNIT_CELL 1 1 1
    &END CELL
    &TOPOLOGY
      MULTIPLE_UNIT_CELL 1 1 1
    &END
    &COORD
@INCLUDE 'FH-chain.xyz'
    &END COORD
    &KIND H
      BASIS_SET SZV-GTH
      POTENTIAL GTH-BLYP-q1
    &END KIND
    &KIND F
      BASIS_SET SZV-GTH
      POTENTIAL GTH-BLYP-q7
    &END KIND
  &END SUBSYS
&END FORCE_EVAL

