Skip to content

Commit

Permalink
Fix _scan_data_layout for HF datalayouts
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Oct 29, 2024
1 parent a802b34 commit a08abec
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/InputOutput/readers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,26 @@ function _scan_quadrature_style(quadraturestring::AbstractString, npts)
end

function _scan_data_layout(layoutstring::AbstractString)
@assert layoutstring ("IJFH", "IJF", "IFH", "IF", "VIJFH", "VIFH")
@assert layoutstring (
"IJFH",
"IJHF",
"IJF",
"IFH",
"IHF",
"IF",
"VIJFH",
"VIJHF",
"VIFH",
"VIHF",
)
layoutstring == "IJFH" && return DataLayouts.IJFH
layoutstring == "IJHF" && return DataLayouts.IJHF
layoutstring == "IJF" && return DataLayouts.IJF
layoutstring == "IFH" && return DataLayouts.IFH
layoutstring == "IHF" && return DataLayouts.IHF
layoutstring == "IF" && return DataLayouts.IF
layoutstring == "VIJFH" && return DataLayouts.VIJFH
layoutstring == "VIJHF" && return DataLayouts.VIJHF
return DataLayouts.VIFH
end

Expand Down

0 comments on commit a08abec

Please sign in to comment.