Changeset 1144 for XIOS/dev/dev_olga/src/node/file.cpp
- Timestamp:
- 05/23/17 16:32:26 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/node/file.cpp
r1136 r1144 616 616 617 617 // Just check file and try to open it 618 CContext* context = CContext::getCurrent();619 // CContextClient* client=context->client;620 CContextClient* client = (0 != context->clientPrimServer.size()) ? context->clientPrimServer[0] : context->client;621 622 // It would probably be better to call initFile() somehow623 // MPI_Comm_dup(client->intraComm, &fileComm);624 618 if (time_counter_name.isEmpty()) time_counter_name = "time_counter"; 625 619 … … 719 713 { 720 714 this->enabledFields[i]->solveOnlyReferenceEnabledField(sendToServer); 721 // this->enabledFields[i]->solveAllEnabledFields();722 // this->enabledFields[i]->buildGridTransformationGraph();723 715 } 724 716 } … … 763 755 int size = this->enabledFields.size(); 764 756 for (int i = 0; i < size; ++i) 765 { 766 // this->enabledFields[i]->solveAllReferenceEnabledField(sendToServer); 757 { 767 758 this->enabledFields[i]->solveAllEnabledFieldsAndTransform(); 768 759 } … … 886 877 \param[in] id String identity of field that will be created on server 887 878 */ 888 void CFile::sendAddField(const string& id)889 {890 sendAddItem(id, EVENT_ID_ADD_FIELD);891 }892 893 879 void CFile::sendAddField(const string& id, CContextClient* client) 894 880 { 895 881 sendAddItem(id, EVENT_ID_ADD_FIELD, client); 896 }897 898 /*!899 \brief Send a message to create a field group on server side900 \param[in] id String identity of field group that will be created on server901 */902 void CFile::sendAddFieldGroup(const string& id)903 {904 sendAddItem(id, (int)EVENT_ID_ADD_FIELD_GROUP);905 882 } 906 883 … … 968 945 is to duplicate this value on server, too. 969 946 */ 970 void CFile::sendAddAllVariables()971 {972 std::vector<CVariable*> allVar = getAllVariables();973 std::vector<CVariable*>::const_iterator it = allVar.begin();974 std::vector<CVariable*>::const_iterator itE = allVar.end();975 976 for (; it != itE; ++it)977 {978 this->sendAddVariable((*it)->getId());979 (*it)->sendAllAttributesToServer();980 (*it)->sendValue();981 }982 }983 984 947 void CFile::sendAddAllVariables(CContextClient* client) 985 948 { … … 999 962 \brief Send a message to create a variable group on server side 1000 963 \param[in] id String identity of variable group that will be created on server 1001 */1002 void CFile::sendAddVariableGroup(const string& id)1003 {1004 sendAddItem(id, (int)EVENT_ID_ADD_VARIABLE_GROUP);1005 }1006 1007 /*!1008 \brief Send a message to create a variable group on server side1009 \param[in] id String identity of variable group that will be created on server1010 964 \param [in] client client to which we will send this adding action 1011 965 */ … … 1013 967 { 1014 968 sendAddItem(id, (int)EVENT_ID_ADD_VARIABLE_GROUP, client); 1015 }1016 1017 /*!1018 \brief Send a message to create a variable on server side1019 A variable always belongs to a variable group1020 \param[in] id String identity of variable that will be created on server1021 */1022 void CFile::sendAddVariable(const string& id)1023 {1024 sendAddItem(id, (int)EVENT_ID_ADD_VARIABLE);1025 969 } 1026 970
Note: See TracChangeset
for help on using the changeset viewer.