Picking results metadata from the second frame

Picking results metadata from the second frame of the first step.
This commit is contained in:
Stein Dale
2015-06-03 12:02:34 +02:00
parent 9eebcb1899
commit 842e3d385f

View File

@@ -208,10 +208,10 @@ std::map< RifOdbReader::ResPos, std::map<std::string, std::vector<std::string> >
const odb_Step& step = stepRepository.constGet(stepIt.currentKey());
const odb_SequenceFrame& stepFrames = step.frames();
if (stepFrames.size() > 0)
if (stepFrames.size() > 1)
{
// Optimization: Get results metadata for the first frame of the first step only
const odb_Frame& frame = stepFrames.constGet(0);
// Optimization: Get results metadata for the second frame of the first step only
const odb_Frame& frame = stepFrames.constGet(1);
const odb_FieldOutputRepository& fieldCon = frame.fieldOutputs();
odb_FieldOutputRepositoryIT fieldConIT(fieldCon);