Changeset 1204 for XIOS


Ignore:
Timestamp:
07/10/17 17:28:00 (7 years ago)
Author:
mhnguyen
Message:

Correcting a minor bug of domain reduction

Test
+) No test

Location:
XIOS/dev/dev_olga/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/node/reduce_domain_to_axis.cpp

    r980 r1204  
    6262             << "Domain source " <<domainSrc->getId() << std::endl 
    6363             << "Axis destination " << axisDst->getId()); 
    64  
    65     if (this->direction.isEmpty()) 
    66       ERROR("CReduceDomainToAxis::checkValid(CAxis* axisDst, CDomain* domainSrc)", 
    67              << "A direction to apply the operation must be defined. It should be: 'iDir' or 'jDir'" 
    68              << "Domain source " <<domainSrc->getId() << std::endl 
    69              << "Axis destination " << axisDst->getId()); 
    70  
    7164     
    7265    switch (direction) 
  • XIOS/dev/dev_olga/src/transformation/axis_algorithm_reduce_domain.cpp

    r1158 r1204  
    102102  CArray<int,1>& axisDstIndex = axisDest_->index; 
    103103  int ni_glo = domainSrc_->ni_glo, nj_glo = domainSrc_->nj_glo; 
    104   if (jDir == dir_) 
     104  if (iDir == dir_) 
    105105  { 
    106106    int nbAxisIdx = axisDstIndex.numElements(); 
     
    117117    } 
    118118  } 
    119   else if (iDir == dir_) 
     119  else if (jDir == dir_) 
    120120  { 
    121121    int nbAxisIdx = axisDstIndex.numElements(); 
Note: See TracChangeset for help on using the changeset viewer.