Hi,
What you are experiencing is due to the fact that you have set the same output file for (i) the trajectory_filename and (ii) the output file of the OptimizeNudgedElasticBand class.
In the case of (i) the output will be a new NEB configuration at each NEB iteration. These will be called "Nudged Elastic Band_X" with X being the number of the NEB iteration. The configuration with the highest X value will correspond to the most converged NEB iteration.
In the case of (ii) the only NEB configurations that will be written to the output will be those of iteration 0 and of the final NEB iteration, which should correspond to the fully converged NEB path.
I would suggest that you set two separate files for (i) and (ii), as shown below. This will allow you to have a clearer overview of the files that are created during the NEB run.
Best,
Daniele
# -------------------------------------------------------------
# Optimize Geometry
# -------------------------------------------------------------
neb_configuration = OptimizeNudgedElasticBand(
neb_configuration,
max_forces=0.02*eV/Ang,
max_steps=200,
max_step_length=0.2*Ang,
trajectory_filename='trajectory_NEB.hdf5',
optimizer_method=LBFGS(),
preoptimization=True,
climbing_image=True,
)
nlsave('NEB.hdf5', neb_configuration)
nlprint(neb_configuration)