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

[OpenFOAM plus] [v1606+] compiling problem with 64-bit labels

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 19, 2016, 13:15
Default [OpenFOAM plus] [v1606+] compiling problem with 64-bit labels
  #1
Member
 
Naresh Yathuru
Join Date: Feb 2015
Posts: 62
Rep Power: 3
Naresh yathuru is on a distinguished road
Hello Foamers,

I m stuck with a wierd error while compiling Openfoam-v1606+ . I m compiling OF1606+ on CENTOS 7.2 in /opt folder.

Everything went well untill the last Openfoam compilation. Now I get this error:
Code:
error: No matching function to call for »Foam::turbulentDFSEMInletFvPatchVectorField::writeEntryIfDifferent(Foam::Ostream&, const char [13], int, const label&) const«
     writeEntryIfDifferent(os, "nCellPerEddy", 5, nCellPerEddy_);
                                                               ^
fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C:1110:63: note: candidate is:
In file included from lnInclude/fixedValueFvPatchField.H:58:0,
                 from lnInclude/fixedValueFvPatchFields.H:29,
                 from fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.H:83,
                 from fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C:26:
lnInclude/fvPatchField.H:533:18: Anmerkung: template<class EntryType> void Foam::fvPatchField<Type>::writeEntryIfDifferent(Foam::Ostream&, const Foam::word&, const EntryType&, const EntryType&) const [with EntryType = EntryType; Type = Foam::Vector<double>]
             void writeEntryIfDifferent
                  ^
lnInclude/fvPatchField.H:533:18: note:   template argument deduction/substitution failed:
fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C:1110:63: note:  deduced conflicting types for parameter ‘const EntryType’ (‘int’ and ‘Foam::label {aka long int}’)
     writeEntryIfDifferent(os, "nCellPerEddy", 5, nCellPerEddy_);
                                                               ^
make: *** [/opt/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt64Opt/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.o] error 1
FYI: I read the post http://www.cfd-online.com/Forums/ope...-problems.html #17

I previously installed OF1606+ in Home/User directory with "Lable size 64" on another computer with the same centOS 7.2 and it worked fine. But other users could not access openFoam for that reason I wanted to install OF1606 this time in a system wide location (opt).

I m lost at this point. Please through some light. Thank you in advance.

Best Regards,
Naresh
Naresh yathuru is offline   Reply With Quote

Old   October 20, 2016, 09:02
Default
  #2
New Member
 
Joost
Join Date: Oct 2016
Location: Amsterdam, The Netherlands
Posts: 6
Rep Power: 2
JD1995 is on a distinguished road
Hey Naresh,

I have got exactly the same error while compiling OFv1606+ on Ubuntu, so maybe there is some change in a code?


Hope someone can help us out.

Best regards,

Joost

Here is my error:
make: *** [/home/ubuntu/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt64Opt/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.o] Error 1
JD1995 is offline   Reply With Quote

Old   October 22, 2016, 04:19
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 784
Rep Power: 19
olesen will become famous soon enough
This was fixed quite sometime ago. You should try the master branch from develop.openfoam.com
olesen is offline   Reply With Quote

Old   October 24, 2016, 14:35
Default
  #4
Member
 
Naresh Yathuru
Join Date: Feb 2015
Posts: 62
Rep Power: 3
Naresh yathuru is on a distinguished road
Hi everyone

I followed the tip suggested in the main post by Bruno. It worked.

which is : I changed the 64 label size to 32 in the /OpenFoam/OpenFOAM-v1606+/etc/bashrc file.

Thank you

Regards,
Naresh
Naresh yathuru is offline   Reply With Quote

Old   November 17, 2016, 23:29
Default
  #5
New Member
 
QuocThien
Join Date: Apr 2013
Posts: 13
Rep Power: 5
neiht is on a distinguished road
Choose:
source $HOME/OpenFOAM/OpenFOAM-v1606+/etc/bashrc
instead of:
source $HOME/OpenFOAM/OpenFOAM-v1606+/etc/bashrc WM_LABEL_SIZE=64
neiht 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
[OpenFOAM plus] Problem installing on Yosemite danlr46 OpenFOAM Installation 22 June 28, 2016 16:04
[OpenFOAM plus] [v3.0+] Compilation problem in Debian 8.2 leguichet OpenFOAM Installation 1 May 29, 2016 14:28
[OpenFOAM plus] starting problem on mac: "xhost: command not found" azaria OpenFOAM Installation 30 May 8, 2016 11:13
[OpenFOAM plus] [3.0+] Compiling Problem: Missing Boost erzdemir OpenFOAM Installation 1 April 1, 2016 08:34
problem with compiling udf through visual studio chem engineer Fluent UDF and Scheme Programming 2 August 17, 2015 10:46


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