&GLOBAL
  RUN_TYPE     ENERGY
  PROJECT      FAPbI3-ENERGY
  PRINT_LEVEL  MEDIUM
&END GLOBAL
&FORCE_EVAL
  METHOD Quickstep
  STRESS_TENSOR ANALYTICAL
  &DFT
    BASIS_SET_FILE_NAME BASIS_MOLOPT
    POTENTIAL_FILE_NAME GTH_POTENTIALS
    &MGRID
      CUTOFF 600
      REL_CUTOFF 120
    &END MGRID
    &SCF
      EPS_SCF 5.0E-6
      SCF_GUESS RESTART
      MAX_SCF 1000
      &OT
        MINIMIZER CG
        PRECONDITIONER FULL_SINGLE_INVERSE
      &END
    &END SCF
    &XC
      &XC_FUNCTIONAL PBE
      &END XC_FUNCTIONAL
      &VDW_POTENTIAL
        POTENTIAL_TYPE PAIR_POTENTIAL
        &PAIR_POTENTIAL
          TYPE DFTD3
          CALCULATE_C9_TERM .TRUE.
          REFERENCE_C9_TERM .TRUE.
          LONG_RANGE_CORRECTION .TRUE.
          PARAMETER_FILE_NAME  dftd3.dat
          REFERENCE_FUNCTIONAL  PBE
          R_CUTOFF 10.0
        &END PAIR_POTENTIAL
      &END VDW_POTENTIAL
    &END XC
  &END DFT
  &SUBSYS
    &CELL
      ABC  12.814   12.532   12.676
      ANGLES 90 90 90
      PERIODIC XYZ
    &END CELL
    &TOPOLOGY
        COORD_FILE_FORMAT PDB
        COORD_FILE_NAME ./FAPbI3_2x2x2.pdb
        &CENTER_COORDINATES
        &END
        CONN_FILE_FORMAT OFF
    &END TOPOLOGY
    &KIND N
      BASIS_SET DZVP-MOLOPT-GTH
      POTENTIAL GTH-PBE-q5
    &END KIND
    &KIND C
      BASIS_SET DZVP-MOLOPT-GTH
      POTENTIAL GTH-PBE-q4
    &END KIND
    &KIND H
      BASIS_SET DZVP-MOLOPT-GTH
      POTENTIAL GTH-PBE-q1
    &END KIND
    &KIND Pb
      BASIS_SET DZVP-MOLOPT-SR-GTH 
      POTENTIAL GTH-PBE-q4
    &END KIND
    &KIND I
      BASIS_SET DZVP-MOLOPT-SR-GTH
      POTENTIAL GTH-PBE-q7 
    &END KIND
  &END SUBSYS
&END FORCE_EVAL
