Skip to content

Error during Symmetrization with custom gradient. #173

@JonathanSchmidt1

Description

@JonathanSchmidt1

I was running some relaxations of a ternary structure with one species fixed using the custom gradient function from the FixAtoms example (The relaxations runs fine without the custom gradient). The calculations seem to run fine for a while until this error pops up:

  self.dyn.structure.coords[:,:] = new_struct
Traceback (most recent call last):
  File "SSCHA_relax_fixed_atom.py", line 213, in <module>
    relax.relax(ensemble_loc = "ensemble/")
  File "/opt/conda/lib/python3.7/site-packages/sscha/Relax.py", line 365, in relax
    custom_function_gradient = self.__cfg__)
  File "/opt/conda/lib/python3.7/site-packages/sscha/SchaMinimizer.py", line 1163, in run
    self.minimization_step(custom_function_gradient)
  File "/opt/conda/lib/python3.7/site-packages/sscha/SchaMinimizer.py", line 541, in minimization_step
    self.dyn.Symmetrize(use_spglib = self.use_spglib)
  File "/opt/conda/lib/python3.7/site-packages/cellconstructor/Phonons.py", line 3181, in Symmetrize
    qe_sym.SymmetrizeFCQ(fcq, self.q_stars, asr = asr, verbose = verbose)
  File "/opt/conda/lib/python3.7/site-packages/cellconstructor/symmetries.py", line 900, in SymmetrizeFCQ
    self.ApplyQStar(fcq[q0_index : q0_index + q_len, :,:], np.array(q_stars[i]))
  File "/opt/conda/lib/python3.7/site-packages/cellconstructor/symmetries.py", line 759, in ApplyQStar
    count))
ValueError: Error, the vector (-0.061, -0.061, 0.043) has 0 identification in the star
double free or corruption (!prev)

I am running a rather old version of SSCHA so I will see if an update helps. Besides that anyone got any idea what's happening?
thank you very much for you help.
Jonathan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions