comparison src/SbpOperators/readoperator.jl @ 804:98e0e0f3c5a8 operator_storage_array_of_table

Move exports to top of file in readoperator.jl
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 27 Jul 2021 21:37:16 +0200
parents b874c26ea7d1
children 3881386f25e6
comparison
equal deleted inserted replaced
803:b874c26ea7d1 804:98e0e0f3c5a8
3 export read_stencil_set 3 export read_stencil_set
4 export get_stencil_set 4 export get_stencil_set
5 5
6 export parse_stencil 6 export parse_stencil
7 export parse_rational 7 export parse_rational
8
9 export sbp_operators_path
8 10
9 # The read_stencil_set and get_stencil_set functions return the freshly parsed 11 # The read_stencil_set and get_stencil_set functions return the freshly parsed
10 # toml. The generic code in these functions can't be expected to know anyhting 12 # toml. The generic code in these functions can't be expected to know anyhting
11 # about how to read different stencil sets as they may contain many different 13 # about how to read different stencil sets as they may contain many different
12 # kinds of stencils. We should how ever add read_ and get_ functions for all 14 # kinds of stencils. We should how ever add read_ and get_ functions for all
104 expr = Meta.parse(replace(str, "/"=>"//")) 106 expr = Meta.parse(replace(str, "/"=>"//"))
105 return eval(:(Rational($expr))) 107 return eval(:(Rational($expr)))
106 end 108 end
107 109
108 sbp_operators_path() = (@__DIR__) * "/operators/" 110 sbp_operators_path() = (@__DIR__) * "/operators/"
109 export sbp_operators_path