Ignore:
Timestamp:
Oct 9, 2002, 11:12:52 AM (23 years ago)
Author:
lemeur
Message:

mise aux normes de for(int k= ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsxntuple.cc

    r2197 r2209  
    297297  // table will have 'nrows' rows
    298298  int nrows = dobj_->NEntry();
    299   cout << " FITS_XNTuple::WriteToFits : nombre de lignes a ecrire " << nrows << endl;
     299  //  cout << " FITS_XNTuple::WriteToFits : nombre de lignes a ecrire " << nrows << endl;
    300300  // get names and values from the join DVList object
    301301  DVList dvl= dobj_->Info();
     
    337337       for (k=0; k<dobj_->NDVar();k++)
    338338         {
    339            for(int j = 0; j < nrows; j++) dcolumn[j]= dobj_->GetDVal(j,compt);
     339           int j;
     340           for(j = 0; j < nrows; j++) dcolumn[j]= dobj_->GetDVal(j,compt);
    340341           os.PutColToFits(compt, nrows, dcolumn);
    341342           compt++;
     
    349350       for (k=0; k<dobj_->NFVar();k++)
    350351         {
    351            for(int j = 0; j < nrows; j++) fcolumn[j]= dobj_->GetFVal(j,compt);
     352           int j;
     353           for(j = 0; j < nrows; j++) fcolumn[j]= dobj_->GetFVal(j,compt);
    352354           os.PutColToFits(compt, nrows, fcolumn);
    353355           compt++;
     
    361363       for (k=0; k<dobj_->NIVar();k++)
    362364         {
    363            for(int j = 0; j < nrows; j++) icolumn[j]= dobj_->GetIVal(j,compt);
    364            cout << " fitsx.. va ecrire la colonne " << endl;
    365            for(int j = 0; j < nrows; j++) cout << icolumn[j] << endl;;
     365           int j;
     366           for(j = 0; j < nrows; j++) icolumn[j]= dobj_->GetIVal(j,compt);
     367           //      for(j = 0; j < nrows; j++) cout << icolumn[j] << endl;;
    366368
    367369           os.PutColToFits(compt, nrows, icolumn);
Note: See TracChangeset for help on using the changeset viewer.