Fixing the global pDomain declaration, so that ionradplane uses function's pDomain argument rather than global