-
Notifications
You must be signed in to change notification settings - Fork 565
Tpetra row count post Export
If you're not sure how many entries the graph or matrix will need per row, and the graph or matrix results from an Export, you can use the same Export with a Vector (ADD CombineMode) to get accurate counts.
- Create shared Map Vector
v_shared_plus_owned
. -
v_shared[lclRow] =
the number of entries in local rowlclRow
of the shared graph / matrix - Create owned (nonoverlapping) Map Vector
v_owned
. -
v_owned[lclRow] =
the number of entries in local rowlclRow
of the pre-Export owned graph / matrix v_owned.doExport(v_shared_plus_owned, exporter, Tpetra::ADD);
- Now
v_owned[lclRow]
has the number of entries required for local rowlclRow
of the post-Export owned graph / matrix (not counting duplicates; see #4278, #4279, #4280, and #4281).
Copyright © Trilinos a Series of LF Projects, LLC
For web site terms of use, trademark policy and other project policies please see https://lfprojects.org.
Trilinos Developer Home
Trilinos Package Owners
Policies
New Developers
Trilinos PR/CR
Productivity++
Support Policy
Test Dashboard Policy
Testing Policy
Managing Issues
New Issue Quick Ref
Handling Stale Issues and Pull Requests
Release Notes
Software Quality Plan
Proposing a New Package
Guidance on Copyrights and Licenses
Tools
CMake
Doxygen
git
GitHub Notifications
Mail lists
Clang-format
Version Control
Initial git setup
'feature'/'develop'/'master' (cheatsheet)
Simple centralized workflow
Building
SEMS Dev Env
Mac OS X
ATDM Platforms
Containers
Development Tips
Automated Workflows
Testing
Test Harness
Pull Request Testing
Submitting a Pull Request
Pull Request Workflow
Reproducing PR Errors
Addressing Test Failures
Trilinos Status Table Archive
Pre-push (Checkin) Testing
Remote pull/test/push
PR Creation & Approval Guidelines for Tpetra, Ifpack2, and MueLu Developers