Changeset 2337


Ignore:
Timestamp:
06/23/22 11:54:18 (2 years ago)
Author:
jderouillat
Message:

Set enabled to false for fields contained in disabled files. solveRefInheritance is operated after to propagate this attribure and so to deactivate, in the workflow, read_access field which could require data included in disabled file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/context.cpp

    r2326 r2337  
    894894    solveDescInheritance(true); 
    895895  
    896     // Solve inheritance for field to know if enabled or not. 
    897     for (auto field : CField::getAll()) field->solveRefInheritance(); 
    898  
    899896    // Check if some axis, domains or grids are eligible to for compressed indexed output. 
    900897    // Warning: This must be done after solving the inheritance and before the rest of post-processing 
     
    909906    //Initialisation du vecteur 'enabledFiles' contenant la liste des fichiers à sortir. 
    910907    findEnabledFiles(); 
     908 
     909    // Solve inheritance for field to know if enabled or not. 
     910    for (auto field : CField::getAll()) field->solveRefInheritance(); 
     911 
    911912    findEnabledWriteModeFiles(); 
    912913    findEnabledReadModeFiles(); 
     
    923924    vector<CField*>& fieldWithReadAccess = fieldsWithReadAccess_ ; 
    924925    vector<CField*> fieldModelIn ; // fields potentially from model 
    925       
     926 
    926927    // define if files are on clientSied or serverSide  
    927928    if (serviceType_==CServicesManager::CLIENT) 
     
    13411342               enabledFiles.push_back(allFiles[i]); 
    13421343            } 
     1344            else // Si l'attribut 'enabled' est fixé à faux. 
     1345            { 
     1346              // disabled all fields contained in file (used in findFieldsWithReadAccess through field_ref dependencies) 
     1347              const vector<CField*>&& fieldList=allFiles[i]->getEnabledFields() ; 
     1348              for(auto field : fieldList) field->enabled.setValue(false); 
     1349            } 
    13431350         } 
    13441351         else 
Note: See TracChangeset for help on using the changeset viewer.