How to use namelist in pgdbg

I am trying to debug my program by pgdbg which read in a namelist file at the beginning.

For pgdbg, in the command line, I tried:

pgdbg biomass_mapping < moz2cb05.inp

The program doesn’t execute. Seems stucking in reading namelist. What is wrong?

thanks,

Hi seairscape,

From the command line, pgdbg is expecting it’s options not your code’s options. Instead, run “pgdbg biomass_mapping” and then from the pgdbg command line type “run < moz2cb05.inp”.

Hope this helps,
Mat