Changeset 403
- Timestamp:
- 01/10/13 17:33:18 (12 years ago)
- Location:
- XIOS/trunk/src/interface/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/icdata.cpp
r382 r403 21 21 #include "field.hpp" 22 22 #include "context.hpp" 23 #include "context_client.hpp" 23 24 #include "mpi.hpp" 24 25 #include "timer.hpp" 25 26 #include "array_new.hpp" 27 26 28 27 29 extern "C" … … 112 114 CTimer::get("XIOS send field").resume() ; 113 115 CContext* context = CContext::getCurrent() ; 114 116 if (!context->hasServer) context->client->checkBuffers() ; 115 117 CArray<double,(StdSize)1> data(data_k8,shape(data_Xsize),neverDeleteData) ; 116 118 CField::get(fieldid_str)->setData(data) ; … … 129 131 CTimer::get("XIOS send field").resume() ; 130 132 CContext* context = CContext::getCurrent() ; 133 if (!context->hasServer) context->client->checkBuffers() ; 131 134 132 135 CArray<double,2>data(data_k8,shape(data_Xsize,data_Ysize),neverDeleteData) ; … … 144 147 CTimer::get("XIOS send field").resume() ; 145 148 CContext* context = CContext::getCurrent() ; 149 if (!context->hasServer) context->client->checkBuffers() ; 146 150 147 151 CArray<double,3>data(data_k8,shape(data_Xsize,data_Ysize,data_Zsize),neverDeleteData) ; … … 159 163 CTimer::get("XIOS send field").resume() ; 160 164 CContext* context = CContext::getCurrent() ; 165 if (!context->hasServer) context->client->checkBuffers() ; 166 161 167 CArray<float,1> data_tmp(data_k4,shape(data_Xsize),neverDeleteData) ; 162 168 CArray<double,1> data(data_Xsize) ; … … 175 181 CTimer::get("XIOS send field").resume() ; 176 182 CContext* context = CContext::getCurrent() ; 183 if (!context->hasServer) context->client->checkBuffers() ; 184 177 185 CArray<float,2> data_tmp(data_k4,shape(data_Xsize,data_Ysize),neverDeleteData) ; 178 186 CArray<double,2> data(data_Xsize,data_Ysize) ; … … 192 200 CTimer::get("XIOS send field").resume() ; 193 201 CContext* context = CContext::getCurrent() ; 202 if (!context->hasServer) context->client->checkBuffers() ; 194 203 195 204 CArray<float,3> data_tmp(data_k4,shape(data_Xsize,data_Ysize,data_Zsize),neverDeleteData) ; -
XIOS/trunk/src/interface/c/icdate.cpp
r352 r403 17 17 #include "timer.hpp" 18 18 #include "context.hpp" 19 #include "context_client.hpp" 19 20 20 21 extern "C" … … 46 47 CTimer::get("XIOS").resume() ; 47 48 xios::CContext* context = CContext::getCurrent() ; 49 if (!context->hasServer) context->client->checkBuffers() ; 48 50 context->updateCalendar(step) ; 49 51 context->sendUpdateCalendar(step) ;
Note: See TracChangeset
for help on using the changeset viewer.