Changeset 510
- Timestamp:
- 11/13/14 15:09:23 (10 years ago)
- Location:
- XIOS/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/icdata.cpp
r509 r510 92 92 CTimer::get("XIOS close definition").resume() ; 93 93 CContext* context = CContext::getCurrent() ; 94 // context->setClientServerBuffer();95 94 context->closeDefinition() ; 96 95 CTimer::get("XIOS close definition").suspend() ; -
XIOS/trunk/src/node/context.cpp
r509 r510 337 337 void CContext::closeDefinition(void) 338 338 { 339 if (hasClient && !hasServer)339 if (hasClient) 340 340 { 341 341 // After xml is parsed, there are some more works with post processing 342 342 postProcessing(); 343 343 // 344 344 setClientServerBuffer(); 345 } 346 347 if (hasClient && !hasServer) 348 { 349 // After xml is parsed, there are some more works with post processing 350 // postProcessing(); 351 352 // setClientServerBuffer(); 345 353 346 354 // Send all attributes of current context to server … … 368 376 369 377 // There are some processings that should be done after all of above. For example: check mask or index 370 if (hasClient && !hasServer) 378 // if (hasClient && !hasServer) 379 if (hasClient) 371 380 { 372 381 this->solveAllRefOfEnabledFields(true); 373 382 this->buildAllExpressionOfEnabledFields(); 374 383 } 384 385 375 386 376 387 // if (hasClient) … … 482 493 const vector<CFile*> allFiles=CFile::getAll() ; 483 494 484 if (hasClient && !hasServer) 485 for (unsigned int i = 0; i < allFiles.size(); i++) 486 allFiles[i]->solveFieldRefInheritance(apply); 495 //if (hasClient && !hasServer) 496 if (hasClient) 497 for (unsigned int i = 0; i < allFiles.size(); i++) 498 allFiles[i]->solveFieldRefInheritance(apply); 487 499 } 488 500 … … 686 698 if (isPostProcessed) return; 687 699 688 this->solveCalendar();689 690 700 // Solve calendar for both side: client and server 691 701 this->solveCalendar(); -
XIOS/trunk/src/node/field.cpp
r509 r510 401 401 { 402 402 areAllReferenceSolved = true; 403 if ( !context->hasServer)403 if (context->hasClient) 404 404 { 405 405 solveRefInheritance(true); -
XIOS/trunk/src/node/grid.cpp
r509 r510 177 177 if (this->withAxis) retVal *= this->axis->size.getValue(); 178 178 retVal *= sizeof(double); 179 retVal *= 1.2; // Secure factor 179 180 ret.insert(make_pair(it->first, retVal)); 180 181 } -
XIOS/trunk/src/test/test_xios_interface.f90
r501 r510 14 14 TYPE(xios_time) :: dtime 15 15 TYPE(xios_context) :: ctx_hdl 16 INTEGER,PARAMETER :: ni_glo=10 017 INTEGER,PARAMETER :: nj_glo=10 016 INTEGER,PARAMETER :: ni_glo=10 17 INTEGER,PARAMETER :: nj_glo=10 18 18 INTEGER,PARAMETER :: llm=5 19 19 DOUBLE PRECISION :: lval(llm)=1 … … 219 219 220 220 !!! Fin de la definition du contexte SRF 221 222 CALL xios_close_context_definition()223 224 225 221 !------------------------------------------------------------------------------- 226 222 ! … … 228 224 ! 229 225 !------------------------------------------------------------------------------- 230 231 !! Be sure in the correct context232 CALL xios_get_handle("surface",ctx_hdl)233 CALL xios_set_current_context(ctx_hdl)234 226 235 227 !! Try getting some variable values … … 299 291 print*, "New value of ", var_id, " is : ", var_val_bool 300 292 end if 293 ! 294 !!!! Fin de la definition du contexte SRF 295 CALL xios_close_context_definition() 301 296 302 297 !####################################################################################
Note: See TracChangeset
for help on using the changeset viewer.