CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] Compilation of waves2FoamMooring on OF-1912 (https://www.cfd-online.com/Forums/openfoam-community-contributions/238870-compilation-waves2foammooring-1912-a.html)

cesa October 7, 2021 14:12

Compilation of waves2FoamMooring on OF-1912
 
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

ngj October 7, 2021 17:46

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


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