Earth Elements: bug fixes/optimizations/additions

bug fixes: -error in order_unslelct_all_pobj due to removing when iterting in array ..........................fixed -error in astar update locallyout3 - case20 ...........................................................…