Skip to content

FLUE_SU2_HKLS ​

Functions to read and write HKLS format for SU2 As used by su2hmc

Source: src/gaugeIO_SU2/HLKS.f90

Dependencies

Contents ​

Subroutines ​

ReadGaugeField_HKLS ​

Read a gaugefield from HKLS format Supports both old Fortran (single seed) and new C (seed per rank) formats Supports old cray Fortran format (bigEndian=true)

fortran
subroutine ReadGaugeField_HKLS(filename, NX, NY, NZ, NT, U_xd, seed, old_nproc, bigEndian)

Arguments

NameTypeIntentAttributesDescription
filenamecharacter(len=*)infilename to read from
NXintegerinlattice dimensions
NYintegerinlattice dimensions
NZintegerinlattice dimensions
NTintegerinlattice dimensions
U_xdcomplex(kind=C_DOUBLE_COMPLEX)outdimension(2, 2, 4, NT, NX, NY, NZ)output gaugefield
seedinteger(kind=C_LONG)outdimension(😃, allocatableseeds - either single number or one for each proc
old_nprocinteger(kind=C_INT)outnumber of procs in header
bigEndianlogicalinoptionalWhether we are reading a big-Endian (cray-era) gaugefield

WriteGaugeField_HKLS ​

Writes a gaugefield to HKLS format supports little-endian only Does support multiple or single seed

fortran
subroutine WriteGaugeField_HKLS(filename, NX, NY, NZ, NT, U_xd, seed, old_nproc)

Arguments

NameTypeIntentAttributesDescription
filenamecharacter(len=*)infilename to write to
NXintegerinlattice dimensions
NYintegerinlattice dimensions
NZintegerinlattice dimensions
NTintegerinlattice dimensions
U_xdcomplex(kind=C_DOUBLE_COMPLEX)indimension(2, 2, 4, NT, NX, NY, NZ)input, internal representation of gaugefield
seedinteger(kind=C_LONG)indimension(😃seed(s) for header
old_nprocinteger(kind=C_INT)innumber of processes for header