diff 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
line wrap: on
line diff
--- a/src/SbpOperators/readoperator.jl	Sat Feb 13 22:17:55 2021 +0100
+++ b/src/SbpOperators/readoperator.jl	Wed Jul 14 23:22:34 2021 +0200
@@ -53,7 +53,7 @@
 end
 
 """
-    read_stencil_set(fn, filter_pairs::Vararg{Pair})
+    read_stencil_set(fn; filters)
 
 Picks out a stencil set from the given toml file based on some filters.
 If more than one set matches the filters an error is raised.
@@ -61,7 +61,7 @@
 The stencil set is not parsed beyond the inital toml parse. To get usable
 stencils use the `parse_stencil` functions on the fields of the stencil set.
 """
-read_stencil_set(fn, filter_pairs::Vararg{Pair}) = get_stencil_set(TOML.parsefile(fn), filter_pairs...)
+read_stencil_set(fn; filters...) = get_stencil_set(TOML.parsefile(fn), filters...)
 
 """
     get_stencil_set(parsed_toml; filters...)