Skip to content

Commit

Permalink
corrects functiontest case
Browse files Browse the repository at this point in the history
  • Loading branch information
svretina committed Jan 8, 2024
1 parent ce921d2 commit 4a5fb2d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/FunctionTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ end
f = GridFunction(g, x -> sin(x[1]) * cos(x[2]) * sin(x[3]))
x = coords(g)
vals = similar(f.values)
for indx in CartesianIndices(x)
i, j, k = indx
vals[i, j, k] = sin(x[i, j, k]) * cos(x[i, j, k]) * sin(x[i, j, k])
for i in 1:(n+1), j in 1:(n+1), k in 1:(n+1)
vals[i, j, k] = sin(x[1][i]) * cos(x[2][j]) * sin(x[3][k])
end
@test f.values == vals
end
Expand Down

0 comments on commit 4a5fb2d

Please sign in to comment.