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

[waves2Foam] Compilation of waves2FoamMooring on OF-1912

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2021, 13:12
Default Compilation of waves2FoamMooring on OF-1912
  #1
New Member
 
Carlos Eduardo Simőes de Almeida
Join Date: May 2021
Location: Lisboa, Portugal
Posts: 16
Rep Power: 4
cesa is on a distinguished road
Hello everyone,


I'm trying to compile the tool waves2FoamMooring on OF1912, but I can't. This is the error output:


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
make: *** [/home/carlos/OpenFOAM/OpenFOAM-v1912/wmake/rules/General/transform:35: Make/linux64GccDPInt32Opt/write1DFvMesh/write1DFvMesh.o] Error 1



It looks like the Xfer function disappeared from OF-v1912, although users can find it in OF-v1712. Is there any way of compiling this utility on OpenFOAM v1912?


Best regards,
Carlos
cesa is offline   Reply With Quote

Old   October 7, 2021, 16:46
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Carlos,


I am pretty sure that it can be compiled, but you most likely need to dive into the code and correct for the changes in syntax.


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   August 3, 2022, 06:28
Default
  #3
New Member
 
Pere
Join Date: Mar 2022
Location: Mallorca
Posts: 16
Rep Power: 4
katiuskas is on a distinguished road
Hi Carlos,

Have you tried removing the Xfer container declaration? So instead of
Code:
Xfer<pointField> xpp;
pointField& pp = xpp();
Just write:
Code:
pointField pp;
And when creating the fvMesh, try using std::move :
Code:
        oneDFvMeshPtr_ = new fvMesh
        (
            IOobject
            (
                meshName_,
                mesh_.time().constant(),
                mesh_.time(),
                IOobject::NO_READ,
                IOobject::AUTO_WRITE
            ),
            std::move(pp),
            std::move(faces),
            std::move(cells)
        );
Let me know if that worked for you!
katiuskas 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
[foam-extend.org] foam-extend-3.2 compilation on windows kirmaks OpenFOAM Installation 7 December 3, 2019 20:20
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit Sargam05 OpenFOAM Installation 13 March 22, 2014 05:21
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 05:56
Caseinsensitive unpacking and windowsmacos niklas OpenFOAM Installation 61 April 14, 2008 09:15
Compilation Error.... Arnab Siemens 4 September 12, 2004 15:54


All times are GMT -4. The time now is 13:44.