Skip to content

Commit

Permalink
Fixed #2982 - Can't load CAM data sets (#2983)
Browse files Browse the repository at this point in the history
  • Loading branch information
clyne committed Feb 1, 2022
1 parent e9b9d3a commit adc4c23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/vdc/DCCF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,6 @@ int DCCF::initDataVars(NetCDFCFCollection *ncdfc, std::map<string, DC::DataVar>
// For each variable add a member to dataVarsMap
//
for (auto varName : vars) {
// A variable can't be both a data variable and a coordinate variable
//
auto itr = _coordVarsMap.find(varName);
if (itr != _coordVarsMap.end()) continue;

// variable type must be float or int
//
Expand Down
2 changes: 1 addition & 1 deletion lib/vdc/DataMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ int DataMgr::Initialize(const vector<string> &files, const std::vector<string> &

rc = _initVerticalCoordVars();
if (rc < 0) {
SetErrMsg("Failed to initialize horizontal coordinates");
SetErrMsg("Failed to initialize vertical coordinates");
return (-1);
}

Expand Down

0 comments on commit adc4c23

Please sign in to comment.