Skip to content

Commit 92caf43

Browse files
authored
Only read CGNS rind values if the environment variable CGNS_USE_RIND is set. (#5900)
1 parent 19dd447 commit 92caf43

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/databases/CGNS/avtCGNSFileReader.C

+15
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,9 @@ avtCGNSFileReader::GetCoords(int timestate, int base, int zone, const cgsize_t *
16461646
// Creation: Tue Jul 6 10:27:03 PDT 2021
16471647
//
16481648
// Modifications:
1649+
// Eric Brugger, Wed Jul 14 13:32:10 PDT 2021
1650+
// Added a temporary hack to only generate ghost zones if the
1651+
// environment variable CGNS_USE_RIND is set.
16491652
//
16501653
// ****************************************************************************
16511654

@@ -1728,6 +1731,18 @@ avtCGNSFileReader::GetQuadGhostZones(int base, int zone,
17281731
}
17291732
}
17301733

1734+
// Temporary hack to only generate ghost zones if the environment
1735+
// variable CGNS_USE_RIND is set. This is because there exist some
1736+
// CGNS files that are single block with rind zones all around the
1737+
// exterior. Adding ghost zones in this case generates a blank image.
1738+
// The particular file is delta.cgns.
1739+
if (getenv("CGNS_USE_RIND") == NULL)
1740+
{
1741+
ghostPresent = false;
1742+
debug4 << "Disabling use of rind values." << endl;
1743+
debug4 << "To enable setenv CGNS_USE_RIND." << endl;
1744+
}
1745+
17311746
// Create the ghost zones array if necessary
17321747
if (ghostPresent && !badIndex)
17331748
{

src/resources/help/en_US/relnotes3.2.1.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<ul>
5151
<li>Added a section on developing at GitHub to the developers manual.</li>
5252
<li>Datasets that contain AMR meshes are now treated as time varying by default. This will guard against issues that arise with time varying AMR meshes that aren't explicitly tagged as time varying within the datasets.</li>
53-
<li>Added support for reading Rind values for structured grids from CGNS files to provide ghost zone information.</li>
53+
<li>Added support for reading Rind values for structured grids from CGNS files to provide ghost zone information. To enable the reading of Rind values you must set the environment variable CGNS_USE_RIND (i.e. "setenv CGNS_USE_RIND").</li>
5454
</ul>
5555

5656
<a name="Dev_changes"></a>

0 commit comments

Comments
 (0)