Changeset 1056
- Timestamp:
- 02/21/17 08:40:09 (6 years ago)
- Location:
- XIOS/dev/branch_yushan
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_fortran.cpp
r1053 r1056 32 32 { 33 33 fc_comm_map.insert(std::make_pair( std::make_pair( fint, omp_get_thread_num()) , comm)); 34 printf(" MAP insert: %d, %d, %p\n", fint, omp_get_thread_num(), &comm);34 printf("EP_Comm_c2f : MAP insert: %d, %d, %p\n", fint, omp_get_thread_num(), &comm); 35 35 } 36 36 … … 52 52 MPI_Comm comm_ptr; 53 53 comm_ptr = it->second; 54 printf(" MAP find: %d, %d, %p\n", it->first.first, it->first.second, &comm_ptr);54 printf("EP_Comm_f2c : MAP find: %d, %d, %p\n", it->first.first, it->first.second, &comm_ptr); 55 55 return comm_ptr; 56 56 } -
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_gatherv.cpp
r1053 r1056 323 323 { 324 324 325 326 327 328 325 if(!comm.is_ep && comm.mpi_comm) 329 326 { … … 350 347 mpi_size = comm.ep_comm_ptr->size_rank_info[2].second; 351 348 349 if(ep_rank != root) 350 { 351 recvcounts = new int[ep_size]; 352 displs = new int[ep_size]; 353 } 354 352 355 MPI_Bcast(const_cast< int* >(recvcounts), ep_size, MPI_INT, root, comm); 353 356 MPI_Bcast(const_cast< int* >(displs), ep_size, MPI_INT, root, comm); … … 441 444 delete[] static_cast<char*>(local_gather_recvbuf); 442 445 } 446 } 447 else 448 { 449 delete[] recvcounts; 450 delete[] displs; 443 451 } 444 452 return 0; -
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_scatterv.cpp
r1053 r1056 318 318 num_ep = comm.ep_comm_ptr->size_rank_info[1].second; 319 319 mpi_size = comm.ep_comm_ptr->size_rank_info[2].second; 320 321 if(ep_rank != root) 322 { 323 sendcounts = new int[ep_size]; 324 displs = new int[ep_size]; 325 } 320 326 321 327 MPI_Bcast(const_cast<int*>(sendcounts), ep_size, MPI_INT, root, comm); … … 414 420 } 415 421 } 422 else 423 { 424 delete[] sendcounts; 425 delete[] displs; 426 } 416 427 417 428 } -
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_split.cpp
r1053 r1056 74 74 75 75 76 while( color_list.size())76 while(!color_list.empty()) 77 77 { 78 78 int target_color = color_list.front(); … … 124 124 if(color == all_color[i]) 125 125 { 126 color_index = i;126 //color_index = i; 127 127 for(int j=0; j<colored_key_loc[i].size(); j++) 128 128 { -
XIOS/dev/branch_yushan/inputs/iodef.xml
r787 r1056 12 12 13 13 14 <file_definition type=" multiple_file" par_access="collective" output_freq="6h" output_level="10" enabled=".TRUE.">14 <file_definition type="one_file" par_access="collective" output_freq="6h" output_level="10" enabled=".TRUE."> 15 15 <file id="output" name="output"> 16 16 <field field_ref="field_A_zoom" name="field_A" /> -
XIOS/dev/branch_yushan/src/filter/filter.cpp
r1053 r1056 15 15 if (outputPacket) 16 16 { 17 printf("filter/filter.cpp : deliverOuput(outputPacket)\n");18 17 deliverOuput(outputPacket); 19 printf("filter/filter.cpp : deliverOuput(outputPacket) OKOK\n");20 18 } 21 19 } -
XIOS/dev/branch_yushan/src/filter/input_pin.cpp
r1053 r1056 33 33 // Unregister before calling onInputReady in case the filter registers again 34 34 gc.unregisterFilter(this, packet->timestamp); 35 printf("filter/input_pin.cpp : onInputReady\n");36 35 onInputReady(it->second.packets); 37 printf("filter/input_pin.cpp : onInputReady OKOK\n");38 36 inputs.erase(it); 39 37 } -
XIOS/dev/branch_yushan/src/filter/output_pin.cpp
r1053 r1056 22 22 for (it = outputs.begin(), itEnd = outputs.end(); it != itEnd; ++it) 23 23 { 24 printf("filter/output_pin.cpp : setInput\n");25 24 it->first->setInput(it->second, packet); 26 printf("filter/output_pin.cpp : setInput OKOK\n");27 25 } 28 26 } -
XIOS/dev/branch_yushan/src/filter/source_filter.cpp
r1053 r1056 29 29 grid->inputField(data, packet->data); 30 30 31 printf("filter/source_filter.cpp : deliverOuput(packet) \n");32 31 deliverOuput(packet); 33 printf("filter/source_filter.cpp : deliverOuput(packet) OKOK\n"); 32 34 33 } 35 34 -
XIOS/dev/branch_yushan/src/io/netcdf.hpp
r1053 r1056 30 30 namespace xios 31 31 { 32 inline int nc_create_par(const char *path, int cmode, ep_lib::MPI_Comm comm, MPI_Info info,int *ncidp)32 inline int nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info,int *ncidp) 33 33 { 34 34 #if defined(USING_NETCDF_PAR) 35 return ::nc_create_par(path, cmode, static_cast<MPI_Comm>(comm.mpi_comm), info, ncidp) ;35 return ::nc_create_par(path, cmode, comm, info, ncidp) ; 36 36 #else 37 37 ERROR("int nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info,int *ncidp)", … … 41 41 } 42 42 43 inline int nc_open_par(const char *path, int mode, ep_lib::MPI_Comm comm, MPI_Info info,int *ncidp)43 inline int nc_open_par(const char *path, int mode, MPI_Comm comm, MPI_Info info,int *ncidp) 44 44 { 45 45 #if defined(USING_NETCDF_PAR) 46 return ::nc_open_par(path, mode, static_cast<MPI_Comm>(comm.mpi_comm), info, ncidp) ;46 return ::nc_open_par(path, mode, comm, info, ncidp) ; 47 47 #else 48 48 ERROR("int nc_open_par(const char *path, int mode, MPI_Comm comm, MPI_Info info,int *ncidp)", -
XIOS/dev/branch_yushan/src/io/onetcdf4.cpp
r1053 r1056 47 47 wmpi = comm && !multifile; 48 48 49 MPI_Info info_null;49 ep_lib::MPI_Info info_null; 50 50 51 51 if (wmpi) … … 57 57 if (wmpi) 58 58 { 59 CNetCdfInterface::createPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), info_null, this->ncidp);59 CNetCdfInterface::createPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), static_cast<MPI_Info>(info_null.mpi_info), this->ncidp); 60 60 printf("creating file with createPar\n"); 61 61 } … … 74 74 if (wmpi) 75 75 { 76 CNetCdfInterface::openPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), info_null, this->ncidp);76 CNetCdfInterface::openPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), static_cast<MPI_Info>(info_null.mpi_info), this->ncidp); 77 77 printf("opening file with openPar\n"); 78 78 } -
XIOS/dev/branch_yushan/src/node/context.cpp
r1053 r1056 20 20 shared_ptr<CContextGroup> CContext::root; 21 21 22 /// ////////////////////// D éfinitions ////////////////////// ///22 /// ////////////////////// Dfinitions ////////////////////// /// 23 23 24 24 CContext::CContext(void) … … 177 177 if (!this->hasChild()) 178 178 { 179 //oss << "<!-- No definition -->" << std::endl; // fait planter l'incr émentation179 //oss << "<!-- No definition -->" << std::endl; // fait planter l'incrmentation 180 180 } 181 181 else … … 404 404 setClientServerBuffer(); //printf("myRank = %d, setClientServerBuffer OK\n", myRank); 405 405 406 //printf("hasClient = %d, hasServer = %d\n", hasClient, hasServer); 407 406 408 if (hasClient && !hasServer) 407 409 { … … 550 552 void CContext::solveAllInheritance(bool apply) 551 553 { 552 // R ésolution des héritages descendants (cà d des héritages de groupes)554 // Rsolution des hritages descendants (cd des hritages de groupes) 553 555 // pour chacun des contextes. 554 556 solveDescInheritance(apply); 555 557 556 // R ésolution des héritages par référence au niveau des fichiers.558 // Rsolution des hritages par rfrence au niveau des fichiers. 557 559 const vector<CFile*> allFiles=CFile::getAll(); 558 560 const vector<CGrid*> allGrids= CGrid::getAll(); … … 577 579 578 580 for (unsigned int i = 0; i < allFiles.size(); i++) 579 if (!allFiles[i]->enabled.isEmpty()) // Si l'attribut 'enabled' est d éfini.581 if (!allFiles[i]->enabled.isEmpty()) // Si l'attribut 'enabled' est dfini. 580 582 { 581 if (allFiles[i]->enabled.getValue()) // Si l'attribut 'enabled' est fix é Ãvrai.583 if (allFiles[i]->enabled.getValue()) // Si l'attribut 'enabled' est fix vrai. 582 584 enabledFiles.push_back(allFiles[i]); 583 585 } … … 586 588 587 589 if (enabledFiles.size() == 0) 588 DEBUG(<<"Aucun fichier ne va être sorti dans le contexte nommé\""590 DEBUG(<<"Aucun fichier ne va tre sorti dans le contexte nomm \"" 589 591 << getId() << "\" !"); 590 592 } … … 827 829 prepareTimeseries(); //printf("myRank = %d, prepareTimeseries OK\n", myRank); 828 830 829 //Initialisation du vecteur 'enabledFiles' contenant la liste des fichiers Ãsortir.831 //Initialisation du vecteur 'enabledFiles' contenant la liste des fichiers sortir. 830 832 this->findEnabledFiles(); //printf("myRank = %d, this->findEnabledFiles OK\n", myRank); 831 833 this->findEnabledReadModeFiles(); //printf("myRank = %d, this->findEnabledReadModeFiles OK\n", myRank); -
XIOS/dev/branch_yushan/src/node/field_impl.hpp
r1053 r1056 20 20 if (clientSourceFilter) 21 21 { 22 printf("file_impl.hpp : clientSourceFilter->streamData\n");23 22 clientSourceFilter->streamData(CContext::getCurrent()->getCalendar()->getCurrentDate(), _data); 24 printf("file_impl.hpp : clientSourceFilter->streamData OKOK\n");25 23 } 26 24 else if (!field_ref.isEmpty() || !content.empty()) -
XIOS/dev/branch_yushan/src/registry.cpp
r1053 r1056 260 260 void CRegistry::hierarchicalGatherRegistry(void) 261 261 { 262 hierarchicalGatherRegistry(communicator) ; 262 // hierarchicalGatherRegistry(communicator) ; 263 gatherRegistry(communicator) ; 263 264 } 264 265 -
XIOS/dev/branch_yushan/src/test/test_client.f90
r1055 r1056 138 138 139 139 PRINT*,"field field_A is active ? ",xios_field_is_active("field_A") 140 141 142 call MPI_Barrier(comm, ierr) 143 PRINT*,"MPI_Barrier OK " 144 140 145 !DO ts=1,24*10 141 146 DO ts=1,6
Note: See TracChangeset
for help on using the changeset viewer.