Skip to content

Harmless: Possible inconsistency in Ndim stored in data.h5 #330

@ALF-Import-Bot

Description

@ALF-Import-Bot

In GitLab by @gpan on Nov 14, 2025, 17:34 UTC:

I noticed a small inconsistency in the Ndim attribute written to data.h5.

This does not seem to affect any functionality. In case I am wrong, I just report it.

In data.h5, under the lattice group, the attribute Ndim appears as:

ATTRIBUTE "Ndim" {
   DATATYPE  H5T_STD_I32LE
   DATASPACE SCALAR
   DATA {
   (0): 2
   }
}

it is because in alf_hdf5_mod.F90, it's size(Latt_unit%Orb_pos_p, 2). See:

attr_name = "Ndim"
call write_attribute(group_id, '.', attr_name, size(Latt_unit%Orb_pos_p, 2), ierr)

Migrated from GitLab: https://git.physik.uni-wuerzburg.de/ALF/ALF/-/issues/330

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions