Ignore:
Timestamp:
11/10/21 11:47:59 (3 years ago)
Author:
jderouillat
Message:

Implement extract axis transformations (from axis and from domain) using source views. extract_domain_to_axis do not require n_glo any more, n_glo is defined using the domain source dimension and the direction requested.

File:
1 edited

Legend:

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

    r2116 r2255  
    4848       << "Axis destination " << axisDst->getId()); 
    4949 
    50     int axis_n_glo = axisDst->n_glo; 
    5150    int domain_ni_glo = domainSrc->ni_glo; 
    5251    int domain_nj_glo = domainSrc->nj_glo; 
     
    6766    { 
    6867      case direction_attr::jDir: 
    69         if (axis_n_glo != domain_nj_glo) 
    70           ERROR("CExtractDomainToAxis::checkValid(CAxis* axisDst, CDomain* domainSrc)", 
    71             << "Extract domain along j, axis destination should have n_glo equal to nj_glo of domain source" 
    72             << "Domain source " <<domainSrc->getId() << " has nj_glo " << domain_nj_glo << std::endl 
    73             << "Axis destination " << axisDst->getId() << " has n_glo " << axis_n_glo); 
    7468        if ((position < 0) || (position >= domain_ni_glo)) 
    7569        ERROR("CExtractDomainToAxis::checkValid(CAxis* axisDst, CDomain* domainSrc)", 
     
    8175 
    8276      case direction_attr::iDir: 
    83         if (axis_n_glo != domain_ni_glo) 
    84           ERROR("CExtractDomainToAxis::checkValid(CAxis* axisDst, CDomain* domainSrc)", 
    85             << "Extract domain along i, axis destination should have n_glo equal to ni_glo of domain source" 
    86             << "Domain source " <<domainSrc->getId() << " has ni_glo " << domain_ni_glo << std::endl 
    87             << "Axis destination " << axisDst->getId() << " has n_glo " << axis_n_glo); 
    8877        if ((position < 0) || (position >= domain_nj_glo)) 
    8978        ERROR("CExtractDomainToAxis::checkValid(CAxis* axisDst, CDomain* domainSrc)", 
Note: See TracChangeset for help on using the changeset viewer.