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

Test code for packed CellSpace Variables #57

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

sjdaines
Copy link
Member

Requires PALEOtoolkit/PALEOboxes.jl#94

Test code for packing CellSpace Variables, to evaluate whether this improves solver performance for atmosphere models.

PALEOmodel.initialize!(model; pack_domain="atm")

will reorder CellSpace Variables in "atm" Domain by cell (so all variables for a cell are adjacent in the aggregated stateexplicit and sms vectors)

Tested with steadystate_ptcForwardDiff solver
(NB: steadystate_ptc_splitdae does not work !)

Shows neglible difference with minimal CHO and CHONS models, which suggests that the default reordering by UMFPACK (Julia \ for sparse matrices) already does a good job of finding a permutation that puts the Jacobian in block-diagonal form (?).

Requires PALEOtoolkit/PALEOboxes.jl#94

Test code for packing CellSpace Variables, to evaluate whether
this improves solver performance for atmosphere models.

PALEOmodel.initialize!(model; pack_domain="atm")

will reorder CellSpace Variables in "atm" Domain by cell
(so all variables for a cell are adjacent in the aggregated stateexplicit
and sms vectors)

Tested with steadystate_ptcForwardDiff solver
(NB: steadystate_ptc_splitdae does not work !)

Shows neglible difference with minimal CHO and CHONS models,
which suggests that the default reordering by UMFPACK (Julia \ for sparse
matrices) already does a good job of finding a permutation that puts the
Jacobian in block-diagonal form (?).
@sjdaines sjdaines marked this pull request as draft July 25, 2023 13:42
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

Successfully merging this pull request may close these issues.

1 participant