Dear QuantumWise-Team,
I have got a question concerning an curious problem: I have written a script to evaluate the number of k-points needed to perform calculations for a nanotube as a first step towards my final simulation.
When I go through step script step by step via the console (also testet as an interactive, parallelized MPAVICH-job on a SMP machine), everything works fine, but when I start the job via the queuing system, ATK seems to hang up while saving the .nc-file, showing me 16 processors fully occupied, but I don't see any progress at all. The resulting .nc-file can be acessed witout any difficulties and doesn't show any error (it contains all the calculated Hamiltonians and my saved structure). The only difference between the script and the manual calculation is the for-loop around the instructions.
So here is the (minimal) script and the according output:
# reading input and so on...
master = processIsMaster()
for k in arange(kstart,kend,kstep): # (1,52,5)
# Define nanotube
NT = NanoTube(n,m,element1,element2,bond_length*Units.Ang,vacuum*Units.Ang) # given parameters
NT = NT.center()
if master:
print "k-number: %d" % (k)
# Basis Set and basic calculator config
basis_set = LDABasis.DoubleZetaPolarized
numerical_accuracy_parameters = NumericalAccuracyParameters(
k_point_sampling = (1, 1, int(k)),
grid_mesh_cutoff = 40.0*Rydberg,
)
calculator = LCAOCalculator(
basis_set=basis_set,
numerical_accuracy_parameters=numerical_accuracy_parameters,
)
NT.setCalculator(calculator)
t1 = time()
force = Forces(NT)
t2 = time()
if master:
print "time for DFT + Forces: %fs" % (t2-t1)
desc = "Nanotube-%d-%d" % (n,m)
nlsave(filename + ".nc", NT, desc)
print "structure \"%s\" successfully written to %.nc" % (desc,filename)
# program stucks here! why?
print >> "%s epsilon %f" % ('%',epsilon)
f = open(filename + "_forces_NT.txt", 'w')
print >> f,"%s epsilon %f" % ('%',epsilon)
force.nlprint(f)
print >> f,""
f.close()
output:
[...]
+------------------------------------------------------------------------------+
| Calculation Converged in 13 steps |
| |
| Fermi Level = -0.131172 Ha |
+------------------------------------------------------------------------------+
+------------------------------------------------------------------------------+
| |
| DFT Calculation [Finished Wed Aug 17 11:50:15 2011] |
| |
+------------------------------------------------------------------------------+
|--------------------------------------------------|
Calculating Eigenvalues : ==================================================
Calculating Density Matrix : ==================================================
time for DFT + Forces: 92.478966s