CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

Error 52-Fortran

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   November 5, 2012, 03:45
Default Error 52-Fortran
New Member
Join Date: Nov 2012
Posts: 21
Rep Power: 7
PPPO is on a distinguished road
"Error 52, Invalid character in field"
anyone seen this error?
It occurs when trying to read a data file:

what's problem?
PPPO is offline   Reply With Quote

Old   November 5, 2012, 04:41
Senior Member
flotus1's Avatar
Join Date: Jun 2012
Location: Germany
Posts: 1,616
Rep Power: 26
flotus1 will become famous soon enoughflotus1 will become famous soon enough
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.
flotus1 is offline   Reply With Quote

Old   November 5, 2012, 11:13
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 388
Rep Power: 9
cdegroot is on a distinguished road
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)
cdegroot is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 16:16
Why Favoring Fortran over C/C++? Zi-Wei Chiou Main CFD Forum 35 September 26, 2001 09:34

All times are GMT -4. The time now is 15:21.