bugchannelflow: a spectral fluid-flow simulator - Bugs: bug #13293, trouble with _U

 
 

bug #13293: trouble with _U

Submitted by:  None
Submitted on:  Sat 04 Jun 2005 07:52:44 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 08 Jun 2005 04:17:41 PM UTC, comment #1:

Good point. I changed all occurrences of _variablename.

John

John F. Gibson <gibson17>
Project Administrator
Sat 04 Jun 2005 07:52:44 AM UTC, original submission:

Compiling the may 25th release (channelflow-0.9.13) on the cygnus port of the unix development tools, on Windows XP, and precisely using gcc 3.4.1 I get this:

g++ -DWIN32 -I -Wall -O3 -DNDEBUG -I ../../fftw-2.1.5/rfftw/ -I ../../fftw-2.1.5/fftw/ -c diffops.cpp
diffops.cpp: In function `void rotationalNL(const FlowField&, const ChebyCoeff&, FlowField&, FlowField&)':
diffops.cpp:955: error: expected primary-expression before numeric constant
diffops.cpp:955: error: expected `;' before numeric constant

The source of the trouble is:

Real _U = U[ny];

You should avoid identifiers starting with underscore because they might interphere with libraries internals.

The workaround is to reneame _U to something else.

P.S. if you have comments you can find me on paolo.greppi at nospam.tiscali.it

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 15 Jun 2005 05:40:11 PM UTCgibson17StatusNone=>Fixed
Wed 08 Jun 2005 04:18:01 PM UTCgibson17Open/ClosedOpen=>Closed
Wed 08 Jun 2005 04:17:41 PM UTCgibson17Summary trouble with _U=>trouble with _U

Back to the top


Powered by Savane 3.1-cleanup1