Changeset 1070 for XIOS/dev/branch_yushan/src/node/context.cpp
- Timestamp:
- 03/09/17 18:31:07 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/node/context.cpp
r1067 r1070 390 390 void CContext::closeDefinition(void) 391 391 { 392 int myRank;393 MPI_Comm_rank(MPI_COMM_WORLD, &myRank);394 395 //printf("myRank = %d, hasClient = %d, hasServer = %d\n", myRank, hasClient, hasServer);396 392 397 393 // There is nothing client need to send to server … … 400 396 // After xml is parsed, there are some more works with post processing 401 397 postProcessing(); 402 //printf("myRank = %d, postProcessing OK\n", myRank); 403 } 404 setClientServerBuffer(); //printf("myRank = %d, setClientServerBuffer OK\n", myRank); 405 406 //printf("hasClient = %d, hasServer = %d\n", hasClient, hasServer); 398 } 399 setClientServerBuffer(); 407 400 408 401 if (hasClient && !hasServer) 409 402 { 410 403 // Send all attributes of current context to server 411 this->sendAllAttributesToServer(); //printf("myRank = %d, this->sendAllAttributesToServer OK\n", myRank);404 this->sendAllAttributesToServer(); 412 405 413 406 // Send all attributes of current calendar 414 407 CCalendarWrapper::get(CCalendarWrapper::GetDefName())->sendAllAttributesToServer(); 415 //printf("myRank = %d, CCalendarWrapper::get(CCalendarWrapper::GetDefName())->sendAllAttributesToServer OK\n", myRank);416 408 417 409 // We have enough information to send to server 418 410 // First of all, send all enabled files 419 sendEnabledFiles(); //printf("myRank = %d, sendEnabledFiles OK\n", myRank);411 sendEnabledFiles(); 420 412 421 413 // Then, send all enabled fields 422 sendEnabledFields(); //printf("myRank = %d, sendEnabledFields OK\n", myRank);414 sendEnabledFields(); 423 415 424 416 // At last, we have all info of domain and axis, then send them 425 sendRefDomainsAxis(); //printf("myRank = %d, sendRefDomainsAxis OK\n", myRank); 426 417 sendRefDomainsAxis(); 427 418 // After that, send all grid (if any) 428 sendRefGrid(); //printf("myRank = %d, sendRefGrid OK\n", myRank);419 sendRefGrid(); 429 420 } 430 421 … … 435 426 if (hasClient) 436 427 { 437 this->buildFilterGraphOfEnabledFields(); //printf("myRank = %d, buildFilterGraphOfEnabledFields OK\n", myRank);438 buildFilterGraphOfFieldsWithReadAccess(); //printf("myRank = %d, buildFilterGraphOfFieldsWithReadAccess OK\n", myRank);439 this->solveAllRefOfEnabledFields(true); //printf("myRank = %d, solveAllRefOfEnabledFields OK\n", myRank);428 this->buildFilterGraphOfEnabledFields(); 429 buildFilterGraphOfFieldsWithReadAccess(); 430 this->solveAllRefOfEnabledFields(true); 440 431 } 441 432 … … 448 439 if (hasClient) 449 440 { 450 sendCreateFileHeader(); //printf("myRank = %d, sendCreateFileHeader OK\n", myRank);451 452 startPrefetchingOfEnabledReadModeFiles(); //printf("myRank = %d, startPrefetchingOfEnabledReadModeFiles OK\n", myRank);441 sendCreateFileHeader(); 442 443 startPrefetchingOfEnabledReadModeFiles(); 453 444 } 454 445 }
Note: See TracChangeset
for help on using the changeset viewer.