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

UDF: parse error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 26, 2007, 13:27
Default UDF: parse error
  #1
manu
Guest
 
Posts: n/a
I'm doing a simple DEFINE_ON_DEMAND function in a UDF and I always get the same error at some places and I don't understand why at all: "parse error at line ..." I looked on internet what people say about this error: some people say that's a problem of UDM (User Define Memory), other people say that we must use compiled and not interpreted UDF but for me that's chinese. Can someone tell me what to do? Thanks
  Reply With Quote

Old   December 2, 2007, 02:04
Default Re: UDF: parse error
  #2
mohanraj
Guest
 
Posts: n/a
1. All the variables needs to be declared at the top(before starting you manipulation or calculations); 2. Parse error occurs when you miss ";" at the end of the line. 3. If you are transferring the ".c" file from windows system to unix system there may be ^M characters sitting at the end of the line. This may lead to some errors.

  Reply With Quote

Old   December 4, 2007, 03:19
Default Re: UDF: parse error
  #3
manu
Guest
 
Posts: n/a
Thanks for the information but I think I have something more special because I made tests of my code, so that I can compile each part of it, but when I put all the parts together it doesn't work and I allways get this "PARSE ERROR" and "INVALID TYPE FOR POINTER DEREFERENCE:FLOAT" at some place of my code...
  Reply With Quote

Old   December 4, 2007, 12:09
Default Re: UDF: parse error
  #4
mohanraj
Guest
 
Posts: n/a
Pls. check that you have put in all the required library on the top of your program. Also, post the two lines of the code (ie. before and after the line error) after checking the braces({}) balance and ";"
  Reply With Quote

Reply

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
parse error in transient udf spring FLUENT 1 July 6, 2010 06:26
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 18:54
groovyBC sega OpenFOAM Running, Solving & CFD 12 February 17, 2010 09:30
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38


All times are GMT -4. The time now is 03:05.