Fortran function remembers values (newbie help)

My thinking is that the place for executable statements is in the executable section and the place for initialization statements is in the initialization section.