Skip to content

DM: Check vector sizes before DMGlobalToLocal and DMLocalToGlobal

James Wright requested to merge jrwrigh/petsc:check_globaltolocal into main

Addresses #1278. Verified using the libCEED fluids example, swapping local and global vectors in calls to DMGlobalToLocal/DMLocalToGlobal.

Note that this only checks the local vector compared against the maxleaf of the SF object. There isn't an equivalent maxroot to check the global vector size, and I don't think it's simple to get that info since the SF is based on one-sided communication.

CC: @jedbrown

Merge request reports