Why do sd_phase() and sd_phase return different values? This may be a lex issue. From one of my ADMB applications: line 655, file linux-gnu/tagest.cpp, sd_phase() = 0, sd_phase = 1 John -- John Sibert Emeritus Researcher, SOEST University of Hawaii at Manoa Visit the ADMB project http://admb-project.org/