Commit 9c43067f authored by whitlocb's avatar whitlocb
Browse files

Add support back in for CGNS 2.4



git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@12774 18c085ea-50e0-402c-830e-de6fd14e8384
parent 61194f0c
......@@ -253,7 +253,12 @@ avtCGNSFileFormat::GetFileHandle()
{
if(fn == INVALID_FILE_HANDLE)
{
#ifdef CG_MODE_READ
if(cg_open(cgnsFileName, CG_MODE_READ, &fn) != CG_OK)
#else
// Still support pre 2.5 CGNS
if(cg_open(cgnsFileName, MODE_READ, &fn) != CG_OK)
#endif
{
debug4 << cg_get_error() << endl;
EXCEPTION1(InvalidFilesException, cgnsFileName);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment