Changeset 27275


Ignore:
Timestamp:
09/09/22 11:48:02 (3 years ago)
Author:
Eric.Larour
Message:

CHG: indices were not being picked up!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-SLPS2022/src/c/modules/QmuStatisticsx/QmuStatisticsx.cpp

    r27273 r27275  
    106106        iomodel->FindConstant(&numstatistics,"md.qmu.statistics.numstatistics");
    107107        for (int i=1;i<=numstatistics;i++){
     108        //for (int i=9;i<=9;i++){
    108109
    109110                char* directory=NULL;
     
    133134                        /*fetch indices: */
    134135                        sprintf(string,"md.qmu.statistics.method(%i).indices",i);
    135                         iomodel->FetchData(&indices,&dummy,&nindices,string);
     136                        iomodel->FetchData(&indices,&nindices,&dummy,string);
    136137                        parameters->AddObject(new IntVecParam(IndicesEnum,indices,nindices));
    137138
     
    11731174        xsize=xNew<int>(nfields*nsteps);
    11741175
     1176        /*_printf0_("nindices: " << nindices << "\n");
     1177        for (int i=0;i<nindices;i++){
     1178                _printf0_(indices[i] << " " );
     1179        }
     1180        _printf0_("\n");
     1181
     1182        _printf0_("nsteps: " << nsteps << "\n");
     1183        for (int i=0;i<nsteps;i++){
     1184                _printf0_(steps[i] << " " );
     1185        }
     1186        _printf0_("\n");*/
     1187
     1188
     1189
    11751190        /*Start opening files:*/
    11761191        for (int i=(lower_row+1);i<=upper_row;i++){
    11771192                _printf0_("reading file #: " << i << "\n");
     1193                /*Create memory buffer for file, to speed things up: {{{*/
    11781194                char file[1000];
    11791195                long int  length;
     
    12011217                _printf0_("    processing file:\n");
    12021218                fid=fmemopen(buffer, length, "rb");
    1203 
    1204                 /*start reading data from the buffer directly:*/
     1219                /*}}}*/
     1220                /*Retrieve the values for all fields and time steps:{{{*/
    12051221                for (int f=0;f<nfields;f++){
    12061222                        fseek(fid,0,SEEK_SET);
     
    12401256                }
    12411257                fclose(fid);
    1242 
    1243                 /*delete buffer:*/
    12441258                xDelete<char>(buffer);
     1259                /*}}}*/
    12451260        }
    12461261        ISSM_MPI_Barrier(IssmComm::GetComm());
    1247         _printf0_("Done reading files, now assembling time series.\n");
     1262        _printf0_("Done reading files, now assembling time series.\n"); //{{{
    12481263
    12491264        for (int f=0;f<nfields;f++){
     
    12781293                        }
    12791294                }
    1280         }
     1295        } //}}}
    12811296        _printf0_("Done with SampleSeries:\n");
    12821297        IssmComm::SetComm(ISSM_MPI_COMM_WORLD);
Note: See TracChangeset for help on using the changeset viewer.