Changeset 974


Ignore:
Timestamp:
10/18/16 11:07:07 (5 years ago)
Author:
mhnguyen
Message:

Ticket 95: Loosening checking condition for lonvalue_1d for rectilinear

+) lon, lat value of rectilinear can be described flexibly as for other type of
grid (curvillinear, unstrucutured)

Test
+) On Curie
+) Work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/domain.cpp

    r971 r974  
    11051105           } 
    11061106         } 
     1107         else if (i_index.numElements() == lonvalue_1d.numElements() && j_index.numElements() == latvalue_1d.numElements()) 
     1108         { 
     1109           lonvalue_client.reference(lonvalue_1d); 
     1110           latvalue_client.reference(latvalue_1d); 
     1111            if (hasBounds) 
     1112           { 
     1113             bounds_lon_client.reference(bounds_lon_1d); 
     1114             bounds_lat_client.reference(bounds_lat_1d); 
     1115           } 
     1116         } 
    11071117         else 
    11081118           ERROR("CDomain::completeLonClient(void)", 
    11091119                 << "[ id = " << this->getId() << " , context = '" << CObjectFactory::GetCurrentContextId() << " ] " 
    11101120                 << "'lonvalue_1d' and 'latvalue_1d' does not have the same size as the local domain." << std::endl 
    1111                  << "'lonvalue_1d' size is " << lonvalue_1d.numElements() << " but it should be " << ni.getValue() << '.' << std::endl 
    1112                  << "'latvalue_1d' size is " << latvalue_1d.numElements() << " but it should be " << nj.getValue() << '.'); 
     1121                 << "'lonvalue_1d' size is " << lonvalue_1d.numElements()  
     1122                 << " and 'latvalue_1d' size is " << latvalue_1d.numElements() << std::endl  
     1123                 << " They should be correspondingly " << ni.getValue() << " and "  << nj.getValue() << " or " << std::endl 
     1124                 << i_index.numElements() << " and "  << j_index.numElements() << "."); 
    11131125       } 
    11141126       else if (type == type_attr::curvilinear || type == type_attr::unstructured) 
Note: See TracChangeset for help on using the changeset viewer.