Skip to content

Commit

Permalink
Merge pull request #2063 from CliMA/ck/libs_hf
Browse files Browse the repository at this point in the history
Fix _scan_data_layout for HF datalayouts
  • Loading branch information
charleskawczynski authored Oct 29, 2024
2 parents a802b34 + a08abec commit 3e95814
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 3e95814

Please sign in to comment.