2016-04-23 1 views
1

Ich versuche, mein Programm von pgdbg debuggen, die in einer Namelistendatei am Anfang lesen. Aber ich weiß nicht, wie man pgdbg mit Namelist ausführt.Wie benutze ich die Namensliste in pgdbg?

./biomass_mapping < moz2cb05.inp  

Für PGDBG, in der Befehlszeile, habe ich versucht: ich mein Programm in Linux in der Regel durch Ausführen

pgdbg biomass_mapping < moz2cb05.inp  

Das Programm wird nicht ausgeführt. Ich habe auch andere Wege ausprobiert. Keine von ihnen hat funktioniert. Funktioniert pgdbg also für die Namensliste?

Dank,

+0

Der Befehl scheint nicht zu funktionieren. pgdbg bleibt beim Lesen der Namensliste stecken und geht nicht weiter. Was ist falsch? – apple

+0

Wenn Sie nicht weiterkommen, sollten Sie in Erwägung ziehen, Fortran so zu ändern, dass es von einer Datei anstelle von stdin liest. – agentp

Antwort

1

ich alle oben bin nicht sicher, da ich es nicht PGDBG zu testen, aber nach it's documentation ist die Lösung wie folgt:

$ pgdbg biomass_mapping 
.... 
pgdbg> run < moz2cb05.inp 

Das entsprechende Dokumentations-Snippet lautet:

ru[n] [arg0 arg1 ... argn] [< inputfile] [> outputfile] Execute program from the 
     beginning. If arguments arg0, arg1, and so on are specified, they are set 
     up as the command-line arguments of the program. Otherwise, the arguments 
     for the previous run command are used.