Changeset 2458 for XIOS3/trunk/src/node/file.cpp
- Timestamp:
- 01/25/23 16:59:46 (16 months ago)
- Location:
- XIOS3/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk
-
Property
svn:mergeinfo
set to
False
/XIOS3/dev/XIOS_FILE_SERVICES merged eligible
-
Property
svn:mergeinfo
set to
False
-
XIOS3/trunk/src/node/file.cpp
r2409 r2458 26 26 : CObjectTemplate<CFile>(), CFileAttributes() 27 27 , vFieldGroup(), data_out(), enabledFields(), fileComm(MPI_COMM_NULL) 28 , isOpen(false), read_client(0),checkRead(false), allZoneEmpty(false)28 , isOpen(false), checkRead(false), allZoneEmpty(false) 29 29 { 30 30 setVirtualFieldGroup(CFieldGroup::create(getId() + "_virtual_field_group")); … … 35 35 : CObjectTemplate<CFile>(id), CFileAttributes() 36 36 , vFieldGroup(), data_out(), enabledFields(), fileComm(MPI_COMM_NULL) 37 , isOpen(false), read_client(0),checkRead(false), allZoneEmpty(false)37 , isOpen(false), checkRead(false), allZoneEmpty(false) 38 38 { 39 39 setVirtualFieldGroup(CFieldGroup::create(getId() + "_virtual_field_group")); … … 1117 1117 CATCH_DUMP_ATTR 1118 1118 1119 void CFile::getWriterServicesId(bool defaultUsingServer2_, const string& defaultPoolWriterId_, const string& defaultWriterId_, const string& defaultPoolGathererId_, const string& defaultGathererId_, 1120 bool& usingServer2, string& poolWriterId, string& writerId, string& poolGathererId, string& gathererId) 1121 { 1122 usingServer2 = defaultUsingServer2_ ; 1123 poolWriterId = defaultPoolWriterId_ ; 1124 writerId = defaultWriterId_ ; 1125 poolGathererId = defaultPoolGathererId_ ; 1126 gathererId = defaultGathererId_ ; 1127 1128 if (!using_server2.isEmpty()) usingServer2 = using_server2; 1129 if (!pool_writer.isEmpty()) poolWriterId = pool_writer ; 1130 if (!writer.isEmpty()) writerId = writer; 1131 if (!pool_gatherer.isEmpty()) poolGathererId = pool_gatherer; 1132 if (!gatherer.isEmpty()) gathererId = gatherer; 1133 } 1134 1135 void CFile::getReaderServicesId(const string& defaultPoolReaderId_, const string& defaultReaderId_, string& poolReaderId, string& readerId) 1136 { 1137 poolReaderId = defaultPoolReaderId_ ; 1138 readerId = defaultReaderId_ ; 1139 1140 if (!pool_reader.isEmpty()) poolReaderId = pool_reader ; 1141 if (!reader.isEmpty()) readerId = reader; 1142 } 1143 1144 void CFile::setContextClient(const string& defaultPoolId, const string& defaultServiceId, int partitionId) 1145 TRY 1146 { 1147 CContext* context = CContext::getCurrent(); 1148 vector<CContextClient*> clients = context->getContextClient(defaultPoolId, defaultServiceId) ; 1149 setContextClient(clients[partitionId]) ; 1150 } 1151 CATCH_DUMP_ATTR 1152 1153 1119 1154 void CFile::setContextClient(CContextClient* newContextClient) 1120 1155 TRY … … 1136 1171 CATCH_DUMP_ATTR 1137 1172 1138 void CFile::setReadContextClient(CContextClient* readContextclient) 1139 TRY 1140 { 1141 read_client = readContextclient; 1142 } 1143 CATCH_DUMP_ATTR 1144 1145 CContextClient* CFile::getReadContextClient() 1146 TRY 1147 { 1148 return read_client; 1149 } 1150 CATCH_DUMP_ATTR 1151 1173 1152 1174 /*! 1153 1175 \brief Send a message to create a field on server side
Note: See TracChangeset
for help on using the changeset viewer.