- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
We have a simulator written in Fortran95 which uses Namelists for input. The engineers that use the simulatorhave beendebugging their namelist inputs by using a variable (that has no significance to the simulator) in multiple places in their input namelist with different values. When a namelist fails on input, that variable would have a value which would identify where in the namelist the failure occured. That worked fine when we were compiling with 8.1, but after the upgrade to 10.0 that debug technique no longer works.
Has there been a change to the way the Namelist feature works?
Is there a way to identify a misspelled variable in a Namelist input after the Namelist fails to be read? "IOSTAT=19" is not very helpful for finding an error in a Namelist that goes on for 20 pages.
Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
As for identifying a misspelled variable, if you catch the error with IOSTAT or ERR=, no, but if you let the error display, you'll get something like this:
forrtl: severe (19): invalid reference to variable in NAMELIST input, unit -4, file CONIN$, line 1, position 27
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Is there a way to let the error display AND obtain a flag (in place of IOSTAT or ERR) that can be used to determine how to proceed? INQUIRE?
OR, Will allowing the error display, end the application?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
For a "debugging" situation, it doesn't seem unreasonable to me to remove the IOSTAT=.

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite