[gpaw-users] kpoints error

Ali Malik malik at mm.tu-darmstadt.de
Fri Jun 19 16:23:10 CEST 2020


Dear all,

I am trying to do ionic relaxation on VF3 compound.  But I keep getting 
an error in kpoints (probably) during setting up of the k-mesh. I am not 
sure if this is related to ase or gpaw.

/Here is the output.
/

/File "/home/groups/da_mm/codes/gpaw/gpaw-20.1.0/bin/gpaw", line 11, in 
<module>//
//    load_entry_point('gpaw==20.1.0', 'console_scripts', 'gpaw')()//
//  File 
"/home/groups/da_mm/codes/gpaw/gpaw-20.1.0/lib/python3.7/site-packages/gpaw-20.1.0-py3.7-linux-x86_64.egg/gpaw/cli/main.py", 
line 80, in main//
//    ase_main('gpaw', 'GPAW command-line tool', __version__, commands, 
hook)//
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/ase/cli/main.py", 
line 99, in main//
//    f(args)//
//  File 
"/home/groups/da_mm/codes/gpaw/gpaw-20.1.0/lib/python3.7/site-packages/gpaw-20.1.0-py3.7-linux-x86_64.egg/gpaw/cli/python.py", 
line 34, in run//
//    runpy.run_path(args.arguments[0], run_name='__main__')//
//  File "/shared/apps/.intel/2018/python/3.7.2/lib/python3.7/runpy.py", 
line 263, in run_path//
//    pkg_name=pkg_name, script_name=fname)//
//  File "/shared/apps/.intel/2018/python/3.7.2/lib/python3.7/runpy.py", 
line 96, in _run_module_code//
//    mod_name, mod_spec, pkg_name, script_name)//
//  File "/shared/apps/.intel/2018/python/3.7.2/lib/python3.7/runpy.py", 
line 85, in _run_code//
//    exec(code, run_globals)//
//  File "optimizeall.py", line 44, in <module>//
//    rel_ions.run(fmax=fmax)//
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/ase/optimize/optimize.py", 
line 272, in run//
//    return Dynamics.run(self)//
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/ase/optimize/optimize.py", 
line 162, in run//
//    for converged in Dynamics.irun(self)://
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/ase/optimize/optimize.py", 
line 128, in irun//
//    self.atoms.get_forces()//
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/ase/atoms.py", 
line 754, in get_forces//
//    forces = self._calc.get_forces(self)//
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/ase/calculators/calculator.py", 
line 659, in get_forces//
//    return self.get_property('forces', atoms)//
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/ase/calculators/calculator.py", 
line 695, in get_property//
//    self.calculate(atoms, [name], system_changes)//
//  File 
"/home/groups/da_mm/codes/gpaw/gpaw-20.1.0/lib/python3.7/site-packages/gpaw-20.1.0-py3.7-linux-x86_64.egg/gpaw/calculator.py", 
line 288, in calculate//
//    self.initialize(atoms)//
//  File 
"/home/groups/da_mm/codes/gpaw/gpaw-20.1.0/lib/python3.7/site-packages/gpaw-20.1.0-py3.7-linux-x86_64.egg/gpaw/calculator.py", 
line 682, in initialize//
//    cell_cv, pbc_c, N_c)//
//  File 
"/home/groups/da_mm/codes/gpaw/gpaw-20.1.0/lib/python3.7/site-packages/gpaw-20.1.0-py3.7-linux-x86_64.egg/gpaw/calculator.py", 
line 1027, in create_wave_functions//
//    kd = self.create_kpoint_descriptor(nspins)//
//  File 
"/home/groups/da_mm/codes/gpaw/gpaw-20.1.0/lib/python3.7/site-packages/gpaw-20.1.0-py3.7-linux-x86_64.egg/gpaw/calculator.py", 
line 995, in create_kpoint_descriptor//
//    bzkpts_kc = kpts2ndarray(par.kpts, atoms)//
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/ase/calculators/calculator.py", 
line 339, in kpts2ndarray//
//    return kpts2kpts(kpts, atoms=atoms).kpts//
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/ase/calculators/calculator.py", 
line 329, in kpts2kpts//
//    return KPoints(monkhorst_pack(size) + offsets)//
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/ase/dft/kpoints.py", 
line 17, in monkhorst_pack//
//    kpts = np.indices(size).transpose((1, 2, 3, 0)).reshape((-1, 3))//
//  File 
"/shared/apps/.intel/2019/python/3.7.2/lib/python3.7/site-packages/numpy/core/numeric.py", 
line 1703, in indices//
//    dimensions = tuple(dimensions)/
/TypeError: 'int' object is not iterable/


And here is the calculation script.

/
/

/from ase.io import read, write//
//from gpaw import GPAW, PW//
//#import gpaw_functions_dev as gf//
//from ase.parallel import parprint//
//from ase.optimize.bfgs import BFGS//
//import numpy as np//
//
//# ionic, cell, full relaxation, iterative relaxation//
//
//
//
//# script related//
//verbose = True//
//
//# GPAW parameters//
//filename = "BPOSCAR"//
//kden = 5//
//kpden = {"size": kden}//
//encut = 500//
//eigensolver = "rmm-diis"//
//relal = "BFGS"//
//swidth = 0.04//
//xc = "PBE"//
//fmax = 0.01//
//
//# output//
//fout = "relaxed_atoms"//
//
//# Read structure//
//atoms = read(filename, format="vasp")//
//
//# calculator//
//calc = GPAW(mode=PW(ecut=encut), //
//        xc=xc, //
//        kpts=kpden, //
//        eigensolver=eigensolver, //
//        occupations={"name": "fermi-dirac", "width": swidth},//
//        txt="rel-ions.txt")//
//
//atoms.set_calculator(calc)//
//# first_ionic //
//#gf.optimize(atoms, reltype="ions",  relaxalgorithm=relal, fmax=fmax)//
//rel_ions = BFGS(atoms, logfile="rel-ionic.log")//
//rel_ions.run(fmax=fmax)/

Also, the structure file is attached. I have no idea about the cause of 
this error.

/
/

Best Regards,
Ali



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/gpaw-users/attachments/20200619/e5918c58/attachment.html>
-------------- next part --------------
generated by phonopy
   1.0
     5.2849960888112761    0.0000000000000000    0.0000000000000000
    -2.6424980444056381    4.5769408718119644    0.0000000000000000
     0.0000000000000000    0.0000000000000000   13.6822299999999988
V F
   6   18
Direct
  0.6666666666666666  0.3333333333333333  0.3333333333333333
  0.9999999999999999  0.0000000000000000  0.5000000000000000
  0.3333333333333333  0.6666666666666665  0.6666666666666666
  0.6666666666666665  0.3333333333333333  0.8333333333333333
  0.0000000000000000  0.9999999999999999  0.0000000000000000
  0.3333333333333332  0.6666666666666666  0.1666666666666665
  0.3993373333333335  0.3993373333333335  0.2500000000000000
  0.0000000000000000  0.6006626666666665  0.2500000000000000
  0.7326706666666669  0.6666666666666666  0.4166666666666666
  0.3333333333333333  0.0660040000000002  0.4166666666666666
  0.9339959999999998  0.2673293333333331  0.4166666666666666
  0.6006626666666665  0.0000000000000000  0.2500000000000000
  0.0660040000000002  0.7326706666666669  0.5833333333333333
  0.6666666666666666  0.9339959999999998  0.5833333333333333
  0.3993373333333334  0.0000000000000000  0.7500000000000000
  0.0000000000000000  0.3993373333333335  0.7500000000000000
  0.6006626666666666  0.6006626666666663  0.7500000000000000
  0.2673293333333331  0.3333333333333333  0.5833333333333333
  0.7326706666666669  0.0660040000000002  0.9166666666666666
  0.3333333333333333  0.2673293333333331  0.9166666666666666
  0.0660040000000002  0.3333333333333333  0.0833333333333333
  0.6666666666666666  0.7326706666666668  0.0833333333333333
  0.2673293333333331  0.9339959999999997  0.0833333333333333
  0.9339959999999998  0.6666666666666666  0.9166666666666666


More information about the gpaw-users mailing list