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

Compilation error in FTRsurfaceFormatRunTime.C

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 23, 2009, 10:11
Default Compilation error in FTRsurfaceFormatRunTime.C
  #1
New Member
 
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 8
begou is on a distinguished road
Hi,

I'm trying to compile OpenFOAM 1.6.x retreived from the git server.

Platform: SGI Altix 450 (IA64)
Compiler: icpc (Intel C++) version 10.1.011

The compilation fails for FTRsurfaceFormatRunTime.C. I'm not familar with OpenFOAM (I'm system engineer). I've found that the error come from
the included file FTRsurfaceFormat.H witch declare a local ftrPatch class with minimal public interface.

Line 64 of included file FTRsurfaceFormat.H instantiate a list of ftrPatch:
List<ftrPatch> ftrPatches(is);
wich requires 2 additional services: "!=" operator and a "<<" operator between an Ostream and a const ftrpatch.

I've added these public methods but as I don't know a lot about OpenFOAM I'm not sure they will do the sight thing (specialy for the second one).

Here is my modified version for the ftrPatch Class. Thanks for your advices about it.

class ftrPatch
{
//- Name of patch
word name_;

//- Type of patch (ignored since it is usually "empty")
word type_;

public:

const word& name() const
{
return name_;
}

// added by Begou 23/12/2009
bool operator != (const ftrPatch & autre) const
{
return !(name_ == autre.name_ && type_ == autre.type_);
}

friend Istream& operator>>(Istream& is, ftrPatch& p)
{
is >> p.name_ >> p.type_;
return is;
}

// added by Begou 23/12/2009
friend Ostream& operator << (Ostream& os, const ftrPatch& p)
{
os<<p.name_ <<endl<< p.type_;
return os;
}
};

These modifications allow compilation of the FTRsurfaceFormatRunTime.C file.

begou is offline   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
Compilation Order and Single Precision Issues gocarts OpenFOAM Bugs 1 October 14, 2009 17:19
Compilation Error when running Tutorial 2.4 zhihuali CD-adapco 7 April 1, 2008 07:34
Compilation error with uparm.f Raghu CD-adapco 2 May 30, 2007 02:09
Compilation Error.... Arnab CD-adapco 4 September 12, 2004 15:54
Need help on double precision compilation tingguang Main CFD Forum 1 March 18, 2002 18:26


All times are GMT -4. The time now is 12:57.