naming of two functions (getLocalVector(), getGlobalEntries()) is not consistent. i suggest something like getLocalVector() + getGlobalVector(), or getLocalEntries() + getGlobalEntries(), or getLocal() + getGlobal(), etc.