Changeset 540 for XIOS/trunk/src/node/context.cpp
- Timestamp:
- 12/16/14 12:55:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/context.cpp
r537 r540 353 353 void CContext::closeDefinition(void) 354 354 { 355 355 356 if (hasClient) 356 357 { 358 std::cout << "Current context " << *this << std::endl; 357 359 // After xml is parsed, there are some more works with post processing 358 360 postProcessing(); … … 378 380 sendEnabledFields(); 379 381 382 // At last, we have all info of domain and axis, then send them 383 sendRefDomainsAxis(); 384 380 385 // After that, send all grid (if any) 381 386 sendRefGrid(); 382 387 383 // At last, we have all info of domain and axis, then send them 384 sendRefDomainsAxis(); 388 385 389 } 386 390 … … 508 512 // Résolution des héritages par référence au niveau des fichiers. 509 513 const vector<CFile*> allFiles=CFile::getAll() ; 514 const vector<CGrid*> allGrids= CGrid::getAll(); 510 515 511 516 //if (hasClient && !hasServer) 512 517 if (hasClient) 518 { 513 519 for (unsigned int i = 0; i < allFiles.size(); i++) 514 520 allFiles[i]->solveFieldRefInheritance(apply); 521 } 522 523 unsigned int vecSize = allGrids.size(); 524 unsigned int i = 0; 525 for (i = 0; i < vecSize; ++i) 526 allGrids[i]->solveDomainAxisRefInheritance(apply); 527 515 528 } 516 529 … … 702 715 { 703 716 postProcessing(); 717 std::cout << "server context " << *this << std::endl; 704 718 } 705 719 … … 848 862 gridPtr->sendCreateChild(*it); 849 863 CGrid::get(*it)->sendAllAttributesToServer(); 864 CGrid::get(*it)->sendAllDomains(); 865 CGrid::get(*it)->sendAllAxis(); 850 866 } 851 867 } … … 881 897 for (itAxis = axisIds.begin(); itAxis != itE; ++itAxis) 882 898 { 883 axisPtr->sendCreateChild(*itAxis); 884 CAxis::get(*itAxis)->sendAllAttributesToServer(); 899 if (!itAxis->empty()) 900 { 901 axisPtr->sendCreateChild(*itAxis); 902 CAxis::get(*itAxis)->sendAllAttributesToServer(); 903 } 885 904 } 886 905 … … 891 910 for (itDom = domainIds.begin(); itDom != itE; ++itDom) 892 911 { 893 domPtr->sendCreateChild(*itDom); 894 CDomain::get(*itDom)->sendAllAttributesToServer(); 912 if (!itDom->empty()) { 913 domPtr->sendCreateChild(*itDom); 914 CDomain::get(*itDom)->sendAllAttributesToServer(); 915 } 895 916 } 896 917 }
Note: See TracChangeset
for help on using the changeset viewer.