Ignore:
Timestamp:
05/26/15 16:13:45 (9 years ago)
Author:
rlacroix
Message:

Add a new interface xios_recv_field to get local instant data from a field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/field_impl.hpp

    r591 r593  
    179179   } 
    180180 
     181  template <int N> 
     182  void CField::getData(CArray<double, N>& _data) const 
     183  { 
     184    if (!read_access.isEmpty() && read_access.getValue() && hasInstantData) 
     185    { 
     186      grid->outputField(instantData, _data); 
     187    } 
     188    else 
     189    { 
     190      ERROR("void CField::getData(CArray<double, N>& _data) const", 
     191            << "Impossible to access field data, the field [ id = " << getId() << " ] does not have read access."); 
     192    } 
     193  } 
    181194} // namespace xios 
    182195 
Note: See TracChangeset for help on using the changeset viewer.