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

VariableAggregator test pack CellSpace variables #94

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

Conversation

sjdaines
Copy link
Member

Test code - not complete

VariableAggregator can optionally add packed_vars which should be CellSpace variables from a single Domain with cells defined by packed_cellranges

Test code - not complete

VariableAggregator can optionally add `packed_vars` which should be
CellSpace variables from a single Domain with cells defined by `packed_cellranges`
@sjdaines sjdaines marked this pull request as draft July 25, 2023 13:31
sjdaines added a commit to PALEOtoolkit/PALEOmodel.jl that referenced this pull request Jul 25, 2023
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 (?).
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