Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diffops dot: fdotg not a vector when g is a tensor #30

Open
gome0803 opened this issue Dec 21, 2021 · 0 comments
Open

diffops dot: fdotg not a vector when g is a tensor #30

gome0803 opened this issue Dec 21, 2021 · 0 comments

Comments

@gome0803
Copy link

Dear channelflow developers,
I have a question concerning the function dot() in diffops.cpp
I have troubles understanding the computation of fdotg when f.Nd= 3 and g.Nd = 9.

fdotg(nx, ny, nz, 0) += f(nx, ny, nz, i) * g(nx, ny, nz, ij)

shouldn’t it be
fdotg(nx, ny, nz, i) += f(nx, ny, nz, j) * g(nx, ny, nz, ij)
just like in dotgrad ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant