Skip to content

Commit

Permalink
Only read CGNS rind values if the environment variable CGNS_USE_RIND …
Browse files Browse the repository at this point in the history
…is set. (#5900)
  • Loading branch information
brugger1 committed Jul 14, 2021
1 parent 19dd447 commit 92caf43
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/databases/CGNS/avtCGNSFileReader.C
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,9 @@ avtCGNSFileReader::GetCoords(int timestate, int base, int zone, const cgsize_t *
// Creation: Tue Jul 6 10:27:03 PDT 2021
//
// Modifications:
// Eric Brugger, Wed Jul 14 13:32:10 PDT 2021
// Added a temporary hack to only generate ghost zones if the
// environment variable CGNS_USE_RIND is set.
//
// ****************************************************************************

Expand Down Expand Up @@ -1728,6 +1731,18 @@ avtCGNSFileReader::GetQuadGhostZones(int base, int zone,
}
}

// Temporary hack to only generate ghost zones if the environment
// variable CGNS_USE_RIND is set. This is because there exist some
// CGNS files that are single block with rind zones all around the
// exterior. Adding ghost zones in this case generates a blank image.
// The particular file is delta.cgns.
if (getenv("CGNS_USE_RIND") == NULL)
{
ghostPresent = false;
debug4 << "Disabling use of rind values." << endl;
debug4 << "To enable setenv CGNS_USE_RIND." << endl;
}

// Create the ghost zones array if necessary
if (ghostPresent && !badIndex)
{
Expand Down
2 changes: 1 addition & 1 deletion src/resources/help/en_US/relnotes3.2.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<ul>
<li>Added a section on developing at GitHub to the developers manual.</li>
<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>
<li>Added support for reading Rind values for structured grids from CGNS files to provide ghost zone information.</li>
<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>
</ul>

<a name="Dev_changes"></a>
Expand Down

0 comments on commit 92caf43

Please sign in to comment.