Utilize range based for loops in OOFEMLIB