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

UDF: parse error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2007, 14: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, 03: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, 04: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, 13: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 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
parse error in transient udf spring FLUENT 1 July 6, 2010 07:26
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 19:54
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 10:30
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38


All times are GMT -4. The time now is 09:23.