Distributed memory version of long-characteristics method