CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > enGrid

Compile EnGrid with CGNS support

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By PierluigiRossi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2015, 06:03
Default Compile EnGrid with CGNS support
  #1
New Member
 
Pierluigi Rossi
Join Date: Jul 2014
Location: Milan
Posts: 15
Rep Power: 12
PierluigiRossi is on a distinguished road
Hi all,

I have problems compiling Engrid with CGNS support.
I have modified the files in the src folder as follows:

engrid.pro:
I have added the line:
CONFIG += CGNS

engrid.pro.app:
I have added the line:
LIBS += -lcgns

libengrid.pro:
I have added the line:
DEFINES += CGNS_SUPPORT

I have the following error messages:
cgnswriter.cpp: In member function ‘void CgnsWriter::writeGrid()’:
cgnswriter.cpp:62:43: error: ‘Unstructured’ was not declared in this scope
if (cg_zone_write(fn,B,"main_grid",size,Unstructured, &Z)) {
^
cgnswriter.cpp:85:36: error: ‘RealDouble’ was not declared in this scope
if (cg_coord_write(fn, B, Z, RealDouble, "CoordinateX", coord_array, &C)) {
^
cgnswriter.cpp:94:36: error: ‘RealDouble’ was not declared in this scope
if (cg_coord_write(fn, B, Z, RealDouble, "CoordinateY", coord_array, &C)) {
^
cgnswriter.cpp:103:36: error: ‘RealDouble’ was not declared in this scope
if (cg_coord_write(fn, B, Z, RealDouble, "CoordinateZ", coord_array, &C)) {
^
cgnswriter.cpp:147:46: error: ‘TETRA_4’ was not declared in this scope
if (cg_section_write(fn, B, Z, "Tetras", TETRA_4, start, end, 0, elements, &S)) {
^
cgnswriter.cpp:172:48: error: ‘PYRA_5’ was not declared in this scope
if (cg_section_write(fn, B, Z, "Pyramids", PYRA_5, start, end, 0, elements, &S)) {
^
cgnswriter.cpp:198:46: error: ‘PENTA_6’ was not declared in this scope
if (cg_section_write(fn, B, Z, "Prisms", PENTA_6, start, end, 0, elements, &S)) {
^
cgnswriter.cpp:226:45: error: ‘HEXA_8’ was not declared in this scope
if (cg_section_write(fn, B, Z, "Hexes", HEXA_8, start, end, 0, elements, &S)) {
^
cgnswriter.cpp:249:49: error: ‘TRI_3’ was not declared in this scope
if (cg_section_write(fn, B, Z, "Triangles", TRI_3, start, end, 0, elements, &S)) {
^
cgnswriter.cpp:273:45: error: ‘QUAD_4’ was not declared in this scope
if (cg_section_write(fn, B, Z, "Quads", QUAD_4, start, end, 0, elements, &S)) {
^
cgnswriter.cpp: In member function ‘void CgnsWriter::writeBcs()’:
cgnswriter.cpp:303:66: error: ‘BCTypeNull’ was not declared in this scope
if (cg_boco_write(fn, B, Z, qPrintable(getBC(bc).getName()), BCTypeNull, ElementList, bc_faces.size(), data, &BC_cgns)) {
^
cgnswriter.cpp:303:78: error: ‘ElementList’ was not declared in this scope
if (cg_boco_write(fn, B, Z, qPrintable(getBC(bc).getName()), BCTypeNull, ElementList, bc_faces.size(), data, &BC_cgns)) {
^
cgnswriter.cpp: In member function ‘virtual void CgnsWriter:perate()’:
cgnswriter.cpp:320:42: error: ‘MODE_WRITE’ was not declared in this scope
if (cg_open(qPrintable(file_name), MODE_WRITE, &fn)) {
^
make[2]: *** [release/cgnswriter.o] Errore 1
make[2]: uscita dalla directory "/home/sas.itn/ianovalep/CFD_Software/engrid-release-1.4/src/libengrid"
make[1]: *** [release] Errore 2
make[1]: uscita dalla directory "/home/sas.itn/ianovalep/CFD_Software/engrid-release-1.4/src/libengrid"
make: *** [sub-libengrid-libengrid-pro-sub_Release_ordered] Errore 2

It seems that the include file is not linked well. Or there is compatibility version problem?
I am trying to install Engrid 1.4 from the source code and I have the cgns library v3.1.

Does someone have the same problem? Can you help me?
Thanks in advance.
(I hope to be clear enough..it is my first thread)

Pierluigi
PierluigiRossi is offline   Reply With Quote

Old   February 4, 2015, 11:30
Default Solved
  #2
New Member
 
Pierluigi Rossi
Join Date: Jul 2014
Location: Milan
Posts: 15
Rep Power: 12
PierluigiRossi is on a distinguished road
I have solved with the patch provided at this link:
https://github.com/wyldckat/engrid/c...9463040bd3da33
elvis likes this.
PierluigiRossi is offline   Reply With Quote

Reply

Tags
cgns, engrid, engrid export


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
[Gmsh] Cgns support for gmsh robyTKD OpenFOAM Meshing & Mesh Conversion 1 July 13, 2016 12:27
Compiling with CGNS Support granbycools SU2 Installation 6 March 31, 2014 07:52
parallel support with CGNS format not yet implemented kirkrich SU2 3 January 18, 2013 16:39
How to compile VTK with Qt support nuovodna OpenFOAM 7 August 12, 2009 11:27
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 15:00.