Changeset 719 for XIOS/trunk/src
- Timestamp:
- 10/05/15 15:32:52 (9 years ago)
- Location:
- XIOS/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/cxios.cpp
r718 r719 26 26 double CXios::bufferSizeFactor = 1.0; 27 27 const double CXios::defaultBufferSizeFactor = 1.0; 28 StdSize CXios::minBufferSize = 1024 * sizeof(double); 28 29 bool CXios::printLogs2Files; 29 30 bool CXios::isOptPerformance = true; … … 61 62 62 63 bufferSizeFactor = getin<double>("buffer_size_factor", defaultBufferSizeFactor); 64 minBufferSize = getin<int>("min_buffer_size", 1024 * sizeof(double)); 63 65 64 66 globalComm=MPI_COMM_WORLD ; -
XIOS/trunk/src/cxios.hpp
r718 r719 42 42 static double bufferSizeFactor; //!< Factor used to tune the buffer size 43 43 static const double defaultBufferSizeFactor; //!< Default factor value 44 static StdSize minBufferSize; //!< Minimum buffer size 44 45 static bool isOptPerformance; //!< Check if buffer size is for performance (as large as possible) 45 46 static CRegistry* globalRegistry ; //!< global registry which is wrote by the root process of the servers -
XIOS/trunk/src/node/context.cpp
r711 r719 266 266 void CContext::setClientServerBuffer() 267 267 { 268 size_t bufferSizeMin = 10 * sizeof(size_t) * 1024;268 size_t bufferSizeMin = CXios::minBufferSize; 269 269 #define DECLARE_NODE(Name_, name_) \ 270 bufferSizeMin = (bufferSizeMin < sizeof(C##Name_##Definition)) ? sizeof(C##Name_##Definition) : bufferSizeMin;270 if (bufferSizeMin < sizeof(C##Name_##Definition)) bufferSizeMin = sizeof(C##Name_##Definition); 271 271 #define DECLARE_NODE_PAR(Name_, name_) 272 272 #include "node_type.conf" 273 #undef DECLARE_NODE 274 #undef DECLARE_NODE_PAR 275 273 276 std::map<int, StdSize> bufferSize = getDataSize(); 274 277 if (bufferSize.empty())
Note: See TracChangeset
for help on using the changeset viewer.