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

Update only diagonal elements of an AMGXMatrix #18

Open
elise-palethorpe opened this issue Aug 17, 2022 · 1 comment
Open

Update only diagonal elements of an AMGXMatrix #18

elise-palethorpe opened this issue Aug 17, 2022 · 1 comment

Comments

@elise-palethorpe
Copy link

I would like to update only the diagonal elements of an AMGXMatrix but replace_coefficients seems to update all non zero elements. I don't understand what the diag_data parameter does but perhaps this is useful?

Thanks!

@KristofferC
Copy link
Collaborator

The diag_data is described in the manual as:

Optional array of external diagonal entries for each row. If there is no external diagonal, in other words,
the diagonal is contained in the matrix itself the diag data must be set to a null pointer. If this value
is non-null, it is assumed to be an array with nblock_dimxblock_dimy entries in AoS layout. diag_
data[iblock_dimxblock_dimy] is the 0,0 entry in the i,i block in the matrix. Currently external
diagonal is not supported.

Note:

Currently external diagonal is not supported.

So I don't think that parameter is useful right now.

I am not sure the functionality of only setting diagonal is currently available.

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

2 participants