Changeset 25599
- Timestamp:
- 09/28/20 11:35:48 (5 years ago)
- 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 669 669 int nfields; 670 670 int range,lower_row,upper_row; 671 int nfilesperdirectory; 671 672 672 673 /*intermediary:*/ … … 688 689 int* meansize=NULL; 689 690 691 /*only work on the statistical communicator: */ 692 if (color==MPI_UNDEFINED)return 0; 693 690 694 /*Retrieve parameters:*/ 695 parameters->FindParam(&nfilesperdirectory,QmuNfilesPerDirectoryEnum); 691 696 parameters->FindParam(&nsamples,QmuNsampleEnum); 692 697 parameters->FindParam(&directory,DirectoryNameEnum); … … 695 700 parameters->FindParam(&steps,&nsteps,StepsEnum); 696 701 697 /*Get rank:*/ 702 /*Get rank from the stat comm communicator:*/ 703 IssmComm::SetComm(statcomm); 698 704 int my_rank=IssmComm::GetRank(); 699 705 … … 983 989 } 984 990 991 _printf0_("Done with MeanVariance :\n"); 992 IssmComm::SetComm(ISSM_MPI_COMM_WORLD); 985 993 986 994 } /*}}}*/ … … 1139 1147 1140 1148 } /*}}}*/ 1141 int OutputStatistics(Parameters* parameters,Results* results ){ /*{{{*/1142 1149 int OutputStatistics(Parameters* parameters,Results* results,int color,ISSM_MPI_Comm statcomm){ /*{{{*/ 1150 1143 1151 char outputfilename[1000]; 1144 1152 char* directory=NULL; … … 1149 1157 int nsteps; 1150 1158 1159 /*only work on the statistical communicator: */ 1160 if (color==MPI_UNDEFINED)return 0; 1161 1151 1162 FemModel* femmodel=new FemModel(); 1152 1163 -
issm/branches/trunk-larour-SLPS2020/src/c/modules/QmuStatisticsx/QmuStatisticsx.h
r25596 r25599 9 9 int ComputeMeanVariance(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm); 10 10 int ComputeSampleSeries(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm); 11 int OutputStatistics(Parameters* parameters,Results* results );11 int OutputStatistics(Parameters* parameters,Results* results,int color,ISSM_MPI_Comm statcomm); 12 12 int ComputeHistogram(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm); 13 13 int readdata(IssmDouble** pdoublemat, int* pdoublematsize, IssmDouble* pdouble, FILE* fid,char* field,int step);
Note:
See TracChangeset
for help on using the changeset viewer.