Ignore:
Timestamp:
01/20/13 23:14:35 (9 years ago)
Author:
ymipsl
Message:

Add grid mask attribute

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/c_attr/icgrid_attr.cpp

    r369 r415  
    7474   
    7575   
     76  void cxios_set_grid_mask(grid_Ptr grid_hdl, bool* mask, int extent1, int extent2, int extent3) 
     77  { 
     78    CTimer::get("XIOS").resume(); 
     79    CArray<bool,3> tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; 
     80    grid_hdl->mask.reference(tmp.copy()); 
     81    grid_hdl->sendAttributToServer(grid_hdl->mask); 
     82  } 
     83   
     84  void cxios_get_grid_mask(grid_Ptr grid_hdl, bool* mask, int extent1, int extent2, int extent3) 
     85  { 
     86    CArray<bool,3> tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; 
     87    tmp=grid_hdl->mask ; 
     88     CTimer::get("XIOS").suspend(); 
     89  } 
     90   
     91   
    7692  void cxios_set_grid_name(grid_Ptr grid_hdl, const char * name, int name_size) 
    7793  { 
Note: See TracChangeset for help on using the changeset viewer.