Changeset 25599


Ignore:
Timestamp:
09/28/20 11:35:48 (5 years ago)
Author:
Eric.Larour
Message:

CHG: diverse

Location:
issm/branches/trunk-larour-SLPS2020/src/c/modules/QmuStatisticsx
Files:
2 edited

Legend:

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

    r25596 r25599  
    669669        int nfields;
    670670        int range,lower_row,upper_row;
     671        int nfilesperdirectory;
    671672       
    672673        /*intermediary:*/
     
    688689        int*         meansize=NULL;
    689690
     691        /*only work on the statistical communicator: */
     692        if (color==MPI_UNDEFINED)return 0;
     693
    690694        /*Retrieve parameters:*/
     695        parameters->FindParam(&nfilesperdirectory,QmuNfilesPerDirectoryEnum);
    691696        parameters->FindParam(&nsamples,QmuNsampleEnum);
    692697        parameters->FindParam(&directory,DirectoryNameEnum);
     
    695700        parameters->FindParam(&steps,&nsteps,StepsEnum);
    696701
    697         /*Get rank:*/
     702        /*Get rank from the stat comm communicator:*/
     703        IssmComm::SetComm(statcomm);
    698704        int my_rank=IssmComm::GetRank();
    699705
     
    983989        }
    984990
     991        _printf0_("Done with MeanVariance :\n");
     992        IssmComm::SetComm(ISSM_MPI_COMM_WORLD);
    985993
    986994} /*}}}*/
     
    11391147
    11401148} /*}}}*/
    1141 int OutputStatistics(Parameters* parameters,Results* results){ /*{{{*/
    1142        
     1149int OutputStatistics(Parameters* parameters,Results* results,int color,ISSM_MPI_Comm statcomm){ /*{{{*/
     1150
    11431151        char   outputfilename[1000];
    11441152        char* directory=NULL;
     
    11491157        int nsteps;
    11501158
     1159        /*only work on the statistical communicator: */
     1160        if (color==MPI_UNDEFINED)return 0;
     1161
    11511162        FemModel* femmodel=new FemModel();
    11521163       
  • issm/branches/trunk-larour-SLPS2020/src/c/modules/QmuStatisticsx/QmuStatisticsx.h

    r25596 r25599  
    99int ComputeMeanVariance(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm);
    1010int ComputeSampleSeries(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm);
    11 int OutputStatistics(Parameters* parameters,Results* results);
     11int OutputStatistics(Parameters* parameters,Results* results,int color,ISSM_MPI_Comm statcomm);
    1212int ComputeHistogram(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm);
    1313int readdata(IssmDouble** pdoublemat, int* pdoublematsize, IssmDouble* pdouble, FILE* fid,char* field,int step);
Note: See TracChangeset for help on using the changeset viewer.