]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
0020825: [CEA] integration of cxx file
authorvsr <vsr@opencascade.com>
Wed, 21 Apr 2010 15:46:10 +0000 (15:46 +0000)
committervsr <vsr@opencascade.com>
Wed, 21 Apr 2010 15:46:10 +0000 (15:46 +0000)
src/RENUMBER/renumbering.cxx

index 839e2d668f4104363f2f28334fde292bcf46726b..b176fa29f8fcf8fc647eb83ad586b8c9091e426b 100644 (file)
@@ -234,6 +234,7 @@ int main (int argc, char** argv)
   vector<int> iternumber;
   vector<int> ordernumber;
   vector<int> types;
+  int nb_fields_tot=0;
   for (int ifield = 0; ifield < nb_fields; ifield++)
     {
       deque<DT_IT_> dtit=med_struct.getFieldIteration(f_names[ifield]);
@@ -242,7 +243,7 @@ int main (int argc, char** argv)
           field_names.push_back(f_names[ifield]);
           iternumber.push_back(iter->dt);
           ordernumber.push_back(iter->it);
-
+          ++nb_fields_tot;
           FIELD_* field = med_struct.getField(f_names[ifield],iter->dt,iter->it);
           if (dynamic_cast<FIELD<double>*>(field))
             types.push_back(1);
@@ -326,7 +327,7 @@ int main (int argc, char** argv)
   cout << "Computing fields      ";
   cout.flush();
   bool exist_type;
-  for(int ifield=0;ifield<nb_fields;++ifield)
+  for(int ifield=0;ifield<nb_fields_tot;++ifield)
     {
       exist_type=false;
       FIELD<double> myField(MED_DRIVER,filename_in,field_names[ifield],iternumber[ifield],ordernumber[ifield]);