CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Error 52-Fortran

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2012, 02:45
Default Error 52-Fortran
  #1
New Member
 
Ali
Join Date: Nov 2012
Posts: 21
Rep Power: 13
PPPO is on a distinguished road
Hi
"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, 03:41
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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, 10:13
Default
  #3
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 17
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

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 15: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 17:05.