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

Implement reading fields from NetCDF files.

File:
1 edited

Legend:

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

    r598 r599  
    507507   } 
    508508 
     509   void CGrid::inputField(int rank, const double* const field, CArray<double,1>& stored) 
     510   { 
     511     CArray<size_t,1>& out_i = *outIndexFromClient[rank]; 
     512     StdSize numElements = stored.numElements(); 
     513     for (StdSize n = 0; n < numElements; ++n) 
     514     { 
     515       stored(n) = *(field+out_i(n)); 
     516     } 
     517   } 
     518 
    509519   //---------------------------------------------------------------- 
    510520 
Note: See TracChangeset for help on using the changeset viewer.