$usegenspecfunc is the command to activate the Subroutine callspecgeneration(nnode,x,y,eg,generation)