med_float dt;
med_int tmp_numdt, tmp_numit;
- med_int step = data->myUseLastTimeStep ? nbofcstp : data->myTimeStep+1;
+ //~med_int step = data->myUseLastTimeStep ? nbofcstp : data->myTimeStep+1;
//~myPrint("step ", step);
- erreur = MEDfieldComputingStepInfo ( medIdt, nomcha, step, &tmp_numdt, &tmp_numit, &dt );
+ erreur = MEDfieldComputingStepInfo ( medIdt, nomcha, 1, &numdt, &numit, &dt );
+ for(med_int step = 1; step <= nbofcstp; step++ )
+ {
+ erreur = MEDfieldComputingStepInfo ( medIdt, nomcha, step, &tmp_numdt, &tmp_numit, &dt );
+ if(tmp_numdt > numdt)
+ {
+ numdt = tmp_numdt;
+ numit = tmp_numit;
+ }
+ }
if ( erreur < 0 )
{
return;
}
- numdt = tmp_numdt;
- numit = tmp_numit;
// Fermeture du fichier
{
fieldNameCmb->insertItem(0,QString(it->first));
int typeStepInField = it->second > 2 ? 2 : it->second ;
- timeStepGroupChanged(typeStepInField, true, it->second-1);
+ timeStepGroupChanged(typeStepInField, true);
}
}
{
fieldNameCmb->insertItem(0,QString(it->first));
int typeStepInField = it->second > 2 ? 2 : it->second ;
- timeStepGroupChanged(typeStepInField, true, it->second-1);
+ timeStepGroupChanged(typeStepInField, true);
}
}