Author Topic: DOS CALCULATION ERROR  (Read 3201 times)

0 Members and 1 Guest are viewing this topic.

Offline Steven

  • Heavy QuantumATK user
  • ***
  • Posts: 30
  • Country: in
  • Reputation: 0
    • View Profile
DOS CALCULATION ERROR
« on: May 8, 2017, 09:50 »
Sir
             I run a DOS calculation on the given script given below . I got an error which is in the log file. Please point me out the mistakes. Is it the problem with memory.? I have run a similar script with 25p.c Aluminium calculated with a different Density cut -off and in that, there is no error.

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: DOS CALCULATION ERROR
« Reply #1 on: May 8, 2017, 18:05 »
Well, the log file says MemoryError, so yeah, that's the problem. You have a lot of k-points and a lot of atoms. Try setting save_partial = False inside DensityOfStates call Note that you do not need to rerun your entire script. Just read the converged calculation from the NC file and just run
Code: python
bulk_configuration = nlread('GaN25-Al75.nc', BulkConfiguration)[-1]

# -------------------------------------------------------------
# Density Of States
# -------------------------------------------------------------
kpoint_grid = MonkhorstPackGrid(
    na=15,
    nb=15,
    nc=15,
    )

density_of_states = DensityOfStates(
    configuration=bulk_configuration,
    kpoints=kpoint_grid,
    energy_zero_parameter=FermiLevel,
    bands_above_fermi_level=None,
    save_partial = False,
    )
nlsave('GaN25-Al75.nc', density_of_states)
nlprint(density_of_states)

Offline Steven

  • Heavy QuantumATK user
  • ***
  • Posts: 30
  • Country: in
  • Reputation: 0
    • View Profile
Re: DOS CALCULATION ERROR
« Reply #2 on: May 8, 2017, 19:37 »
Thank you so much Sir.. :)