Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/SbpOperators.jl @ 360:f36866ba97e6 refactor/remove_dynamic_size_tensormapping
Remove SbpOperator type and ColocationOperator type
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 28 Sep 2020 22:38:09 +0200 |
parents | 0844069ab5ff |
children | 21fba50cb5b0 db64cfe4d9de |
comparison
equal
deleted
inserted
replaced
359:ba46a952a450 | 360:f36866ba97e6 |
---|---|
13 include("quadrature/diagonal_inner_product.jl") | 13 include("quadrature/diagonal_inner_product.jl") |
14 include("quadrature/quadrature.jl") | 14 include("quadrature/quadrature.jl") |
15 include("quadrature/inverse_diagonal_inner_product.jl") | 15 include("quadrature/inverse_diagonal_inner_product.jl") |
16 include("quadrature/inverse_quadrature.jl") | 16 include("quadrature/inverse_quadrature.jl") |
17 | 17 |
18 abstract type SbpOperator{T,R,D} <: TensorMapping{T,R,D} end | |
19 | |
20 """ | |
21 grid(::ColocationOperator) | |
22 | |
23 Return the the grid which the sbp-operator lives on | |
24 """ | |
25 function grid end | |
26 | |
27 abstract type ColocationOperator{T,R,D} <: SbpOperator{T,R,D} end | |
28 | |
29 LazyTensors.range_size(co::ColocationOperator) = size(grid(co)) | |
30 LazyTensors.domain_size(co::ColocationOperator) = size(grid(co)) | |
31 | |
32 # Allt ovan kanske är overkill.. Eventuellt bara lättare och tydligare att alla typer definerar sina range och domain size hur dom vill. (I praktiken typ alltid genom att ha gridden som ett fält i structen.) | |
33 | |
34 end # module | 18 end # module |