Changeset 1128 for XIOS/dev/branch_yushan/src/node/context.cpp
- Timestamp:
- 05/11/17 16:12:23 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/node/context.cpp
r1115 r1128 247 247 hasClient=true; 248 248 249 #pragma omp critical 249 250 250 client = new CContextClient(this, intraComm, interComm, cxtServer); 251 251 … … 253 253 MPI_Comm_rank(intraComm, &tmp_rank); 254 254 MPI_Barrier(intraComm); 255 256 // #pragma omp critical (_output)257 // printf("Client %d : context.cpp client = new CContextClient, client add = %p, clientRank = %d\n", tmp_rank, &(*client), client->clientRank) ;258 255 259 #pragma omp critical 256 260 257 registryIn=new CRegistry(intraComm); 261 262 258 263 259 registryIn->setPath(getId()) ; 264 265 // #pragma omp critical (_output) 266 // printf("Client %d : context.cpp registryIn->setPath, client add = %p, clientRank = %d\n", tmp_rank, &(*client), client->clientRank) ; 260 267 261 268 262 if (client->clientRank==0) registryIn->fromFile("xios_registry.bin") ; … … 825 819 MPI_Comm_rank(MPI_COMM_WORLD, &myRank); 826 820 827 //printf("myRank = %d, in postProcessing, isPostProcessed = %d\n", myRank, isPostProcessed);828 821 if (isPostProcessed) return; 829 822 … … 834 827 ERROR("CContext::postProcessing()", << "A timestep must be defined for the context \"" << getId() << "!\"") 835 828 // Calendar first update to set the current date equals to the start date 836 calendar->update(0); //printf("myRank = %d, calendar->update(0) OK\n", myRank);829 calendar->update(0); 837 830 838 831 // Find all inheritance in xml structure 839 this->solveAllInheritance(); //printf("myRank = %d, this->solveAllInheritance OK\n", myRank);832 this->solveAllInheritance(); 840 833 841 834 // Check if some axis, domains or grids are eligible to for compressed indexed output. 842 835 // Warning: This must be done after solving the inheritance and before the rest of post-processing 843 checkAxisDomainsGridsEligibilityForCompressedOutput(); //printf("myRank = %d, checkAxisDomainsGridsEligibilityForCompressedOutput OK\n", myRank);836 checkAxisDomainsGridsEligibilityForCompressedOutput(); 844 837 845 838 // Check if some automatic time series should be generated 846 839 // Warning: This must be done after solving the inheritance and before the rest of post-processing 847 prepareTimeseries(); //printf("myRank = %d, prepareTimeseries OK\n", myRank);840 prepareTimeseries(); 848 841 849 842 //Initialisation du vecteur 'enabledFiles' contenant la liste des fichiers sortir. 850 this->findEnabledFiles(); //printf("myRank = %d, this->findEnabledFiles OK\n", myRank);851 this->findEnabledReadModeFiles(); //printf("myRank = %d, this->findEnabledReadModeFiles OK\n", myRank);843 this->findEnabledFiles(); 844 this->findEnabledReadModeFiles(); 852 845 853 846 // Find all enabled fields of each file 854 this->findAllEnabledFields(); //printf("myRank = %d, this->findAllEnabledFields OK\n", myRank);855 this->findAllEnabledFieldsInReadModeFiles(); //printf("myRank = %d, this->findAllEnabledFieldsInReadModeFiles OK\n", myRank);847 this->findAllEnabledFields(); 848 this->findAllEnabledFieldsInReadModeFiles(); 856 849 857 850 if (hasClient && !hasServer) 858 851 { 859 852 // Try to read attributes of fields in file then fill in corresponding grid (or domain, axis) 860 this->readAttributesOfEnabledFieldsInReadModeFiles(); //printf("myRank = %d, this->readAttributesOfEnabledFieldsInReadModeFiles OK\n", myRank);853 this->readAttributesOfEnabledFieldsInReadModeFiles(); 861 854 } 862 855 863 856 // Only search and rebuild all reference objects of enable fields, don't transform 864 this->solveOnlyRefOfEnabledFields(false); //printf("myRank = %d, this->solveOnlyRefOfEnabledFields(false) OK\n", myRank);857 this->solveOnlyRefOfEnabledFields(false); 865 858 866 859 // Search and rebuild all reference object of enabled fields 867 this->solveAllRefOfEnabledFields(false); //printf("myRank = %d, this->solveAllRefOfEnabledFields(false) OK\n", myRank);860 this->solveAllRefOfEnabledFields(false); 868 861 869 862 // Find all fields with read access from the public API 870 findFieldsWithReadAccess(); //printf("myRank = %d, findFieldsWithReadAccess OK\n", myRank);863 findFieldsWithReadAccess(); 871 864 // and solve the all reference for them 872 solveAllRefOfFieldsWithReadAccess(); //printf("myRank = %d, solveAllRefOfFieldsWithReadAccess OK\n", myRank);865 solveAllRefOfFieldsWithReadAccess(); 873 866 874 867 isPostProcessed = true; … … 1159 1152 void CContext::updateCalendar(int step) 1160 1153 { 1161 //info(50) << "updateCalendar : before : " << calendar->getCurrentDate() << endl;1162 1154 calendar->update(step); 1163 //info(50) << "updateCalendar : after : " << calendar->getCurrentDate() << endl;1164 1155 1165 1156 if (hasClient)
Note: See TracChangeset
for help on using the changeset viewer.