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

Compilation error in FTRsurfaceFormatRunTime.C

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 23, 2009, 09:11
Default Compilation error in FTRsurfaceFormatRunTime.C
  #1
New Member
 
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17
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


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


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