Changeset 696 for codes/icosagcm/devel/Python/dynamico/xios.py
- Timestamp:
- 05/10/18 01:01:55 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/dynamico/xios.py
r694 r696 29 29 30 30 class XIOS_Context: 31 def __init__(self, pmesh, mesh,nqtot ):31 def __init__(self, pmesh, mesh,nqtot, step): 32 32 self.mesh=mesh 33 33 ker.dynamico_setup_xios() … … 46 46 # calendar 47 47 calendar=cxios.Handle('calendar_wrapper') 48 dtime = cxios.Duration(second= 3600.)48 dtime = cxios.Duration(second=step) 49 49 calendar.set_attr(timestep=dtime) 50 50 calendar.update_timestep() … … 60 60 data = data[own_loc] 61 61 if data.ndim==2: 62 data = data[:,own_loc] 62 data = data[own_loc,:] 63 data = data.transpose() # XIOS expects contiguous horizontal slices 63 64 data = np.ascontiguousarray(data) 64 65 cxios.send_field(name, data)
Note: See TracChangeset
for help on using the changeset viewer.