diff --git a/components/omega/src/base/IO.cpp b/components/omega/src/base/IO.cpp index ac523904d914..e4ef3fa9bac4 100644 --- a/components/omega/src/base/IO.cpp +++ b/components/omega/src/base/IO.cpp @@ -193,7 +193,7 @@ void init(const MPI_Comm &InComm // [in] MPI communicator to use Err = IOConfig.get("IODefaultFormat", InFileFmt); CHECK_ERROR_WARN(Err, "IO: DefaultFileFmt not found in Config - using {}", InFileFmt); - FileFmt DefaultFileFmt = FileFmtFromString(InFileFmt); + DefaultFileFmt = FileFmtFromString(InFileFmt); // Read parallel IO settings - default to single-task if config // values do not exist diff --git a/components/omega/src/infra/IOStream.cpp b/components/omega/src/infra/IOStream.cpp index 114853d878a1..86e06ca0c84c 100644 --- a/components/omega/src/infra/IOStream.cpp +++ b/components/omega/src/infra/IOStream.cpp @@ -2285,7 +2285,7 @@ Error IOStream::readStream( // Open input file int InFileID; - IO::openFile(InFileID, InFileName, Mode, IO::FmtDefault, ExistAction); + IO::openFile(InFileID, InFileName, Mode, IO::DefaultFileFmt, ExistAction); // Read any requested global metadata for (auto Iter = ReqMetadata.begin(); Iter != ReqMetadata.end(); ++Iter) { @@ -2438,7 +2438,7 @@ void IOStream::writeStream( // Open output file int OutFileID; - IO::openFile(OutFileID, OutFileName, Mode, IO::FmtDefault, ExistAction); + IO::openFile(OutFileID, OutFileName, Mode, IO::DefaultFileFmt, ExistAction); // For files with multiple frames or time slices, we need to determine the // default Frame number for time-dependent fields. If the frame/time already