|
[Sponsors] |
[waves2Foam] Compile waves2FoamMooring on OF1912 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 15, 2020, 20:24 |
Compile waves2FoamMooring on OF1912
|
#1 |
New Member
Romain Ping
Join Date: Feb 2019
Posts: 3
Rep Power: 7 |
Hello,
I would like to compile and use the tool waves2FoamMooring provided within waves2Foam on OpenFoam1812 or OpenFoam 1912. When I try to compile it i get the error below. It seems that the code is calling for a function "Xfer" and cannot find it. I managed to compile this tool and use it on OF1712. Indeed, I found the function Xfer in the folder '/home/engineer/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/memory' However this Xfer function disappeared in v1812 and v1912. Does anyone know how to compile this mooring tool on the new OF versions ? Is there another function that could be used instead of 'Xfer' ? Or how I could compile the Xfer function ? Thanks for your help. error : write1DFvMesh/write1DFvMesh.C: In member function ‘void Foam::write1DFvMesh::updateMesh(const Foam::List<Foam::Field<Foam::Vector<double> > >&, const labelList&, const labelList&, const labelList&, const labelList&)’: write1DFvMesh/write1DFvMesh.C:225:9: error: ‘Xfer’ was not declared in this scope Xfer<pointField> xpp; ^~~~ write1DFvMesh/write1DFvMesh.C:225:24: error: expected primary-expression before ‘>’ token Xfer<pointField> xpp; ^ write1DFvMesh/write1DFvMesh.C:225:26: error: ‘xpp’ was not declared in this scope Xfer<pointField> xpp; ^~~ write1DFvMesh/write1DFvMesh.C:225:26: note: suggested alternative: ‘lpp’ Xfer<pointField> xpp; ^~~ lpp write1DFvMesh/write1DFvMesh.C:231:22: error: expected primary-expression before ‘>’ token Xfer<faceList> xfaces; ^ write1DFvMesh/write1DFvMesh.C:231:24: error: ‘xfaces’ was not declared in this scope Xfer<faceList> xfaces; ^~~~~~ write1DFvMesh/write1DFvMesh.C:231:24: note: suggested alternative: ‘face’ Xfer<faceList> xfaces; ^~~~~~ face write1DFvMesh/write1DFvMesh.C:280:22: error: expected primary-expression before ‘>’ token Xfer<cellList> xcells; ^ write1DFvMesh/write1DFvMesh.C:280:24: error: ‘xcells’ was not declared in this scope Xfer<cellList> xcells; ^~~~~~ write1DFvMesh/write1DFvMesh.C:280:24: note: suggested alternative: ‘cell’ Xfer<cellList> xcells; ^~~~~~ cell /home/engineer/OpenFOAM/OpenFOAM-v1912/wmake/rules/General/transform:34: recipe for target 'Make/linux64GccDPInt32Opt/write1DFvMesh/write1DFvMesh.o' failed |
|
January 29, 2021, 05:59 |
|
#2 |
New Member
Ji
Join Date: Oct 2013
Posts: 5
Rep Power: 12 |
Hello, did you slove this problem?
I also have this problem |
|
August 2, 2021, 10:32 |
waves2Foam compilation - problem with Xfer function - OF-v2012
|
#3 |
New Member
Join Date: Mar 2021
Posts: 11
Rep Power: 6 |
Hi Romain and Ji,
Did you find a way to solve this problem ? I am facing the same issue as you. Hope you can help! Best regards, Alix |
|
October 11, 2021, 11:07 |
|
#4 |
New Member
cesa
Join Date: May 2021
Location: Lisboa, Portugal
Posts: 18
Rep Power: 5 |
Hello,
I am facing the exact same problem, did you guys solve it? Best regards, Carlos |
|
October 11, 2021, 13:20 |
|
#5 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37 |
Hi,
The syntax changed between versions, so I recommend that you dive into the code and make the necessary changes. Kind regards Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
October 11, 2021, 16:52 |
|
#6 |
New Member
cesa
Join Date: May 2021
Location: Lisboa, Portugal
Posts: 18
Rep Power: 5 |
Hello Niels,
Thank you for answering. I checked the v1912 Developer Upgrade Guide and it says that: "The pre-C++11 Xfer has now been removed. it was deprecated and slated for removal 2018-03." I'm trying to fix the write1DFvMesh.C file, but apparently this Xfer funciton doesn't exist on OF-v1912 anymore, so I don't know what to do yet. Best regards, Carlos |
|
Tags |
of1812, of1912, waves2foammooring, xfer |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 06:05 |
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 | gwierink | OpenFOAM Installation | 0 | April 5, 2011 04:38 |
PV3FoamReader compile error.... | PEM_GUY | OpenFOAM Installation | 6 | April 5, 2010 17:22 |
Error compile file udf | czfluent | Fluent UDF and Scheme Programming | 24 | September 26, 2009 13:24 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 21:51 |