attempting bug fix for dynamic LES segfault on cluster.

initialising pointers and logicals in a more organised way.