|
[Sponsors] |
November 5, 2012, 02:45 |
Error 52-Fortran
|
#1 |
New Member
Ali
Join Date: Nov 2012
Posts: 21
Rep Power: 13 |
Hi
"Error 52, Invalid character in field" anyone seen this error? It occurs when trying to read a data file: what's problem? |
|
November 5, 2012, 03:41 |
|
#2 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46 |
My initial guess would be that the format of your data file does not meet the format declaration of the variables d, u or ff.
|
|
November 5, 2012, 10:13 |
|
#3 |
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 17 |
Yeah you should put a format statement otherwise how is it going to know what to look for? Lets say you are reading 3 reals that are floating point numbers 12 spaces wide with 9 decimal places and are separated by 3 spaces you would use:
read(14,100) d(i),u(i),ff(i) 100 format(F12.9,3x,F12.9,3x,F12.9) |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fortran Compiler-CFX12.1 | Araz | CFX | 13 | March 27, 2017 05:37 |
Using Fortran with CFX: How to connect Fortran to CFX? | l.te | CFX | 0 | October 21, 2012 11:42 |
visual fortran | Monica | Main CFD Forum | 1 | August 28, 2004 20:45 |
Fortran77 or Fortran 90 | Swapnil | CFX | 2 | November 26, 2002 15:16 |
Why Favoring Fortran over C/C++? | Zi-Wei Chiou | Main CFD Forum | 35 | September 26, 2001 09:34 |