Thanks for your reply, the SDVINI subroutine was definitely what I was looking for. As far as I can tell, the only part of the subroutine I require is the noel portion. However, there must be still something that I am doing wrong since, after running a test, all the SDV values remained zero...