Skip to content
New issue

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

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

Already on GitHub? # to your account

getEdgeAverageMatrix is broken #14

Open
dwfmarchant opened this issue Jun 21, 2017 · 4 comments
Open

getEdgeAverageMatrix is broken #14

dwfmarchant opened this issue Jun 21, 2017 · 4 comments

Comments

@dwfmarchant
Copy link
Member

dwfmarchant commented Jun 21, 2017

getEdgeAverageMatrix in getEdgeToCellCenteredMatrix.jl doesn't work any more. It's still calling getEdgeMassMatrixAnisotropic which no longer exists. Anyone know what the correct replacement is? (maybe @cschwarzbach ?)

@cschwarzbach
Copy link
Contributor

I believe that getEdgeAverageMatrix was intended simply as a wrapper around getEdgeToCellCenteredMatrix. Later, it was tweaked to return the mass matrix computed in a different way. I propose that we return to its original intention and replace the call to getEdgeMassMatrixAnisotropic by a call to getEdgeToCellCenteredMatrix. This change will also align getEdgeAverageMatrix with the similar functions getNodalAverageMatrix and getFaceAverageMatrix.

@dwfmarchant
Copy link
Member Author

So:

function getEdgeAverageMatrix(M::OcTreeMesh)
    if isempty(M.Ae)
         M.Ae, = getEdgeToCellCenteredMatrix(M.S)
    end
    return M.Ae
end

Should be the right fix?

@cschwarzbach
Copy link
Contributor

Yes, from a code organization point of view. However, the implementations of getEdgeToCellCenteredMatrix, getNodeToCellCenteredMatrix and getFaceToCellCenteredMatrix are not quite consistent. I'm not sure what these functions are actually used for; the original and primary purpose was mass matrix construction which has been replaced by improved and designated functions.

@dwfmarchant
Copy link
Member Author

Good point... I can use get getEdgeToCellCenteredMatrix directly for the time being and we can talk about this when you get back.

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

No branches or pull requests

2 participants