Utilities for BerkeleyGW