Error trace (with directories shortened for clarity):
At line 841 of file labeling_related.f90
Fortran runtime error: Index '1' of dimension 1 of array 'vslabels' outside of expected range (1:0)
Error termination. Backtrace:
#0 0xfc65fe37 in generate_labeling_from_index
at C:/.../enumlib/src/labeling_related.f90:841
#1 0xfc6642bf in __labeling_related_MOD_write_labelings
at C:/.../enumlib/src/labeling_related.f90:718
#2 0xfc6856b5 in __derivative_structure_generator_MOD_gen_multilattice_derivatives
at C:/.../enumlib/src/derivative_structure_generator.f90:1482
#3 0xfc706d01 in driver
at C:/.../enumlib/src/driver.f90:39
#4 0xfc706d46 in main
at C:/.../enumlib/src/driver.f90:2
C:\...\pymatgen\transformations\advanced_transformations.py:408: UserWarning: Unable to enumerate for max_cell_size = 5
warnings.warn(f"Unable to enumerate for {max_cell_size = }")
Traceback (most recent call last):
File "c:\...\enum_error_mwe.py", line 19, in <module>
ordered_structure = est.apply_transformation(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\...\pymatgen\transformations\advanced_transformations.py", line 411, in apply_transformation
raise ValueError("Unable to enumerate")
ValueError: Unable to enumerate
A bit of extra Python to generate the struct_enum.in file:
# # Windows path bodge, unrelated to problem
# import os
# os.environ['PATHEXT'] += ';.PY'
# os.environ['PATH'] += os.pathsep + os.getcwd() + "\\..\\enumlib\\src"
# os.environ['PATH'] += os.pathsep + os.getcwd() + "\\..\\enumlib\\aux_src"
from pymatgen.core import Structure
from pymatgen.command_line.enumlib_caller import EnumlibAdaptor
disordered_structure = Structure.from_file('Sb8Ge2Te14.cif')
ea = EnumlibAdaptor(
structure=disordered_structure,
min_cell_size=5,
max_cell_size=5,
)
ea._gen_input_file()
I'm using
pymatgen.transformations.advanced_transformations.EnumerateStructureTransformation
to order disordered structures. For some structures, I'm getting Fortran runtime errors fromenumlib
. Here is one of the errors I'm getting; I believe it's the same as #77.See below for...
pymatgen
Python sourcestruct_enum.in
generated bypymatgen
First, the
pymatgen
minimum working example (enum_error_mwe.py
):The example structure, as found in
Sb8Ge2Te14.cif
:Error trace (with directories shortened for clarity):
A bit of extra Python to generate the
struct_enum.in
file:...and finally, the contents of
struct_enum.in
:Other ternary systems with similar structures & compositions have worked fine. Thanks in advance!