Changeset 1030 for XIOS/dev/dev_olga/src/object_template_impl.hpp
- Timestamp:
- 01/20/17 16:17:57 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/object_template_impl.hpp
r1025 r1030 166 166 // Use correct context client to send message 167 167 CContext* context = CContext::getCurrent(); 168 int nbSrvPools = (context->hasServer) ? context->clientPrimServer.size() : 1; 168 // int nbSrvPools = (context->hasServer) ? context->clientPrimServer.size() : 1; 169 int nbSrvPools = (context->hasServer) ? (context->hasClient ? context->clientPrimServer.size() : 1) : 1; 169 170 for (int i = 0; i < nbSrvPools; ++i) 170 171 { … … 275 276 if (context->hasClient) 276 277 { 277 int nbSrvPools = (context->hasServer) ? context->clientPrimServer.size() : 1; 278 // int nbSrvPools = (context->hasServer) ? context->clientPrimServer.size() : 1; 279 int nbSrvPools = (context->hasServer) ? (context->hasClient ? context->clientPrimServer.size() : 0) : 1; 278 280 for (int i = 0; i < nbSrvPools; ++i) 279 281 { … … 349 351 { 350 352 // Use correct context client to send message 351 int nbSrvPools = (context->hasServer) ? context->clientPrimServer.size() : 1; 353 // int nbSrvPools = (context->hasServer) ? context->clientPrimServer.size() : 1; 354 int nbSrvPools = (context->hasServer) ? (context->hasClient ? context->clientPrimServer.size() : 0) : 1; 352 355 for (int i = 0; i < nbSrvPools; ++i) 353 356 {
Note: See TracChangeset
for help on using the changeset viewer.