Skip to content

Commit

Permalink
InFile.getVariable().dim_ix: bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
h-dh committed Feb 8, 2016
1 parent 2084b60 commit 17991c6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/InFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,15 @@ InFile::getVariable(void)
{
var.dimName.push_back( ds[j] );
var.dimSize.push_back( nc.getDimSize(ds[j]) );
var.dim_ix.push_back(j);

for( size_t k=0 ; k < variable.size() ; ++k)
{
if( variable[k].name == ds[j] )
{
var.dim_ix.push_back(k);
break;
}
}
}

// get meta data of variables.
Expand Down

0 comments on commit 17991c6

Please sign in to comment.