CGNS library fails to write correct connectivities

Description

The CGNS library fails to write the connectivities for a simple file we are working on.

It seems that there is something wrong with the function cg_conn_write.

The following code snippet reveals the check that fails and returns with CG_ERROR:

/* verify input */
size_of_zone = 1;
for (i=0; i<index_dim; i++) size_of_zone*=zone->nijk[i];
if (npnts<0 || npnts>size_of_zone) {
cgi_error("Inconsistent number of points in point set");
return CG_ERROR;
}

For zone 2 we have the following values:

index_dim = 1 (Unstructured mesh)
nijk[0] = NVertex = 460
nijk[1] = NCell3D = 1680
The connectivities (npts = 564) for this zone are defined on faces (facecenter), however the check fails because it checks with the total number of nodes in zone (since size_of_zone = 460).

Environment

None

Activity

Show:
Mickael PHILIT
April 28, 2020, 2:45 PM

The test in cg_conn_write is only valid for Structured Grid. For unstructured grid it should be skipped

Assignee

Unassigned

Reporter

Scot Breitenfeld

Components

Fix versions

Affects versions

Priority

Blocker
Configure