comparison src/SbpOperators/readoperator.jl @ 767:210d3f58bd56 operator_storage_array_of_table

Make signature of read_stencil_set conform to signature of get_stencil_set
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 14 Jul 2021 23:22:34 +0200
parents 7624a1350ece
children 7c87a33963c5
comparison
equal deleted inserted replaced
766:7624a1350ece 767:210d3f58bd56
51 51
52 return d2 52 return d2
53 end 53 end
54 54
55 """ 55 """
56 read_stencil_set(fn, filter_pairs::Vararg{Pair}) 56 read_stencil_set(fn; filters)
57 57
58 Picks out a stencil set from the given toml file based on some filters. 58 Picks out a stencil set from the given toml file based on some filters.
59 If more than one set matches the filters an error is raised. 59 If more than one set matches the filters an error is raised.
60 60
61 The stencil set is not parsed beyond the inital toml parse. To get usable 61 The stencil set is not parsed beyond the inital toml parse. To get usable
62 stencils use the `parse_stencil` functions on the fields of the stencil set. 62 stencils use the `parse_stencil` functions on the fields of the stencil set.
63 """ 63 """
64 read_stencil_set(fn, filter_pairs::Vararg{Pair}) = get_stencil_set(TOML.parsefile(fn), filter_pairs...) 64 read_stencil_set(fn; filters...) = get_stencil_set(TOML.parsefile(fn), filters...)
65 65
66 """ 66 """
67 get_stencil_set(parsed_toml; filters...) 67 get_stencil_set(parsed_toml; filters...)
68 68
69 Same as `read_stencil_set` but works on already parsed TOML. 69 Same as `read_stencil_set` but works on already parsed TOML.