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

[waves2Foam] Compile waves2FoamMooring on OF1912

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

Like Tree1Likes
  • 1 Post By cesa

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2020, 21:24
Question Compile waves2FoamMooring on OF1912
  #1
New Member
 
Romain Ping
Join Date: Feb 2019
Posts: 3
Rep Power: 4
romainping is on a distinguished road
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
romainping is offline   Reply With Quote

Old   January 29, 2021, 06:59
Default
  #2
New Member
 
Ji
Join Date: Oct 2013
Posts: 5
Rep Power: 10
aisy is on a distinguished road
Hello, did you slove this problem?
I also have this problem
aisy is offline   Reply With Quote

Old   August 2, 2021, 11:32
Post waves2Foam compilation - problem with Xfer function - OF-v2012
  #3
New Member
 
Join Date: Mar 2021
Posts: 10
Rep Power: 3
4lix is on a distinguished road
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
4lix is offline   Reply With Quote

Old   October 11, 2021, 12:07
Default
  #4
New Member
 
Carlos Eduardo Simőes de Almeida
Join Date: May 2021
Location: Lisboa, Portugal
Posts: 14
Rep Power: 2
cesa is on a distinguished road
Hello,


I am facing the exact same problem, did you guys solve it?


Best regards,
Carlos
cesa is offline   Reply With Quote

Old   October 11, 2021, 14:20
Default
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,885
Rep Power: 34
ngj will become famous soon enoughngj will become famous soon enough
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.
ngj is offline   Reply With Quote

Old   October 11, 2021, 17:52
Default
  #6
New Member
 
Carlos Eduardo Simőes de Almeida
Join Date: May 2021
Location: Lisboa, Portugal
Posts: 14
Rep Power: 2
cesa is on a distinguished road
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
4lix likes this.
cesa is offline   Reply With Quote

Reply

Tags
of1812, of1912, waves2foammooring, xfer

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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 07:05
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 gwierink OpenFOAM Installation 0 April 5, 2011 05:38
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 18:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 14:24
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51


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