&CONTROL
 calculation = 'scf'
 prefix='mgo',
 pseudo_dir = '../pseudo/',
 outdir='./'
 wf_collect=.true.
 verbosity='high'
 tefield      = .true.
 dipfield     = .true.
 nstep = 500
/
&SYSTEM
  ibrav = 6
  celldm(1) =    7.755632967
  celldm(3) =    7.963728537
  nat = 20
  ntyp = 3
  occupations = 'smearing'
  degauss     = 0.0035
  ecutwfc     = 100
  eamp        = 0.00
  edir        = 3
  emaxpos     = 0.95
  eopreg      = 0.10
  !vdw_corr    ='grimme-d3'
/
&ELECTRONS
 diago_full_acc=.true.
 conv_thr=1e-14
 electron_maxstep = 300
/
ATOMIC_SPECIES
  Ag  107.86820  Ag-ONCV.UPF
  Mg   24.30500  Mg-ONCV.UPF
   O   15.99900  O-ONCV.UPF
ATOMIC_POSITIONS (crystal)
Ag       0.000000000   0.000000000   0.323271580
Ag       0.000000000   0.500000000   0.385512833
Ag       0.500000000   0.000000000   0.385513311
Ag       0.500000000   0.500000000   0.323271502
Ag       0.000000000  -0.000000000   0.448168396
Ag       0.000000000   0.500000000   0.509859874
Ag       0.500000000  -0.000000000   0.509852748
Ag       0.500000000   0.500000000   0.448169963
Mg      -0.000000000  -0.000000000   0.589827315
O        0.500000000  -0.000000000   0.590560893
O       -0.000000000   0.500000000   0.590569338
Mg       0.500000000   0.500000000   0.589774770
O       -0.000000000  -0.000000000   0.656255567
Mg       0.500000000   0.000000000   0.656482104
Mg      -0.000000000   0.500000000   0.656497252
O        0.500000000   0.500000000   0.656250518
Mg      -0.000000000   0.000000000   0.721978968
O        0.500000000   0.000000000   0.723372273
O       -0.000000000   0.500000000   0.723371161
Mg       0.500000000   0.500000000   0.721975961
K_POINTS automatic
 12 12 1 0 0 0
