comparison test/SbpOperators/volumeops/volume_operator_test.jl @ 1153:f1bb1b6d85dd refactor/sbpoperators/inflation

Review: Suggest changes to test and removal of conveninece constructor
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Tue, 25 Oct 2022 10:33:27 +0200
parents 56bc2c6a17fd
children 03c217c50d7c
comparison
equal deleted inserted replaced
1151:56bc2c6a17fd 1153:f1bb1b6d85dd
38 r_odd = copy(v) 38 r_odd = copy(v)
39 39
40 r_even[1] = (v[1] + v[2])/2 40 r_even[1] = (v[1] + v[2])/2
41 r_odd[1] = (v[1] + v[2])/2 41 r_odd[1] = (v[1] + v[2])/2
42 42
43 # Review:
44 # Use multiplication symbol, e.g. 2*v[1]
43 r_even[2] = 2v[1] + v[2] 45 r_even[2] = 2v[1] + v[2]
44 r_odd[2] = 2v[1] + v[2] 46 r_odd[2] = 2v[1] + v[2]
45 47
46 for i ∈ 3:N-2 48 for i ∈ 3:N-2
47 r_even[i] = (v[i-1] + 2v[i] + v[i+1])/4 49 r_even[i] = (v[i-1] + 2v[i] + v[i+1])/4