- Contrassegnare come Nuovo
- Preferito
- Iscriversi
- Disattiva notifiche
- Iscriversi a feed RSS
- Evidenziare
- Stampare
- Segnalare contenuto inappropriato
Greeetings:
I have a mix of CVF 6 and Intel 9.1 FORTRAN codes. Seems CVF put out numbers with e+## format while the newer Intel puts out e+###. So reading old file in new code is no issue but not all codes are ported yet.
Is there a way to have Intel 9.1 FORTRAN put out e+## range?
Regards
Carl
I have a mix of CVF 6 and Intel 9.1 FORTRAN codes. Seems CVF put out numbers with e+## format while the newer Intel puts out e+###. So reading old file in new code is no issue but not all codes are ported yet.
Is there a way to have Intel 9.1 FORTRAN put out e+## range?
Regards
Carl
Link copiato
3 Risposte
- Contrassegnare come Nuovo
- Preferito
- Iscriversi
- Disattiva notifiche
- Iscriversi a feed RSS
- Evidenziare
- Stampare
- Segnalare contenuto inappropriato
Please supply a test program that shows this behavior. I don't know of any reason why simply changing compilers should change the formatted output - especially as you're saying that a character is being dropped.
Also, I'll comment that 9.1 is quite old at this point.
Also, I'll comment that 9.1 is quite old at this point.
- Contrassegnare come Nuovo
- Preferito
- Iscriversi
- Disattiva notifiche
- Iscriversi a feed RSS
- Evidenziare
- Stampare
- Segnalare contenuto inappropriato
Quoting - Steve Lionel (Intel)
Please supply a test program that shows this behavior. I don't know of any reason why simply changing compilers should change the formatted output - especially as you're saying that a character is being dropped.
Also, I'll comment that 9.1 is quite old at this point.
Also, I'll comment that 9.1 is quite old at this point.
Better than that I will solve my own problem ....
Seems the E format will take on optional format character E#so E15.6E2 will do the trick .... so the last digit sets the range of values.
As an alternative a "simple" sed script could be use to change the files ....
#!/bin/bash
cp $1 $1.bak
cat $1.bak | sed -e "s/([0-9.]*e[+-])0([0-9][0-9])/12 /g" >$1
Hope this helps someone else....
Regards
Carl
- Contrassegnare come Nuovo
- Preferito
- Iscriversi
- Disattiva notifiche
- Iscriversi a feed RSS
- Evidenziare
- Stampare
- Segnalare contenuto inappropriato
I am concerned about the behavior change, which should not be there. Please show me an example that illustrates the difference.

Rispondere
Opzioni discussione
- Iscriversi a feed RSS
- Contrassegnare la discussione come nuova
- Contrassegnare la discussione come letta
- Sposta questo Discussione per l'utente corrente
- Preferito
- Iscriversi
- Pagina in versione di stampa