Skip to content

Commit d13c383

Browse files
Add FD operator checks for allowable boundary conditions (#2180)
* Assert valid boundary conditions in FD operators * Fix stretch params in io
1 parent 6838f81 commit d13c383

File tree

3 files changed

+337
-101
lines changed

3 files changed

+337
-101
lines changed

src/InputOutput/readers.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ function read_mesh_new(reader::HDF5Reader, name::AbstractString)
284284
nelems = nelements,
285285
)
286286
end
287-
if stretch_type "UnknownStretch"
288-
stretch_params = attrs(group)["stretch_params"]
287+
stretch_params = get(attrs(group), "stretch_params", nothing)
288+
if stretch_type "UnknownStretch" && !isnothing(stretch_params)
289289
CT = Domains.coordinate_type(domain)
290290
stretch =
291291
getproperty(Meshes, Symbol(stretch_type))(stretch_params...)

0 commit comments

Comments
 (0)