Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/inference_trouble.txt @ 1207:f1c2a4fa0ee1 performance/get_region_type_inference
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 03 Feb 2023 22:14:47 +0100 |
parents | b41180efb6c2 |
children |
comparison
equal
deleted
inserted
replaced
919:b41180efb6c2 | 1207:f1c2a4fa0ee1 |
---|---|
37 using Sbplib.RegionIndices | 37 using Sbplib.RegionIndices |
38 | 38 |
39 g = EquidistantGrid(10,0., 1.) | 39 g = EquidistantGrid(10,0., 1.) |
40 v = evalOn(g, (x)->x^2+1) | 40 v = evalOn(g, (x)->x^2+1) |
41 H = inner_product(g, 1., [1/2]) | 41 H = inner_product(g, 1., [1/2]) |
42 V = SbpOperators.volume_operator(g, Stencil(1.,center=1), (Stencil(1/2,center=1),), SbpOperators.even,1) | 42 V = SbpOperators.VolumeOperator(g, Stencil(1.,center=1), (Stencil(1/2,center=1),), SbpOperators.even) |
43 b = SbpOperators.boundary_operator(g, Stencil(1/2,center=1), CartesianBoundary{1,Lower}()) | 43 b = SbpOperators.BoundaryOperator(g, Stencil(1/2,center=1), Lower()) |
44 end | 44 end |
45 | 45 |
46 @code_warntype LazyTensors.apply(H, H*v, 2) | 46 @code_warntype LazyTensors.apply(H, H*v, 2) |
47 @code_warntype LazyTensors.apply(V, V*v, 2) | 47 @code_warntype LazyTensors.apply(V, V*v, 2) |
48 @code_warntype LazyTensors.apply(b, b*v, 2) | |
49 | |
50 | |
51 | |
52 begin | |
53 end |