Skip to content

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

@sebastien-gome

Description

@sebastien-gome

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions