Changeset 680
- Timestamp:
- 09/01/15 17:15:42 (9 years ago)
- Location:
- XIOS/trunk/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/array_new.hpp
r677 r680 554 554 { 555 555 if (!array.toBuffer(buffer)) ERROR("template <typename T_numtype,int N_rank> inline CBufferOut& operator<<(CBufferOut& buffer, const CArray& array)", 556 << " Buffer remain size is to low for size type");556 << "Not enough free space in buffer to queue the array."); 557 557 return buffer; 558 558 } … … 561 561 { 562 562 if (!array.fromBuffer(buffer)) ERROR("template <typename T_numtype,int N_rank> inline CBufferIn& operator>>(CBufferIn& buffer, CArray& array)", 563 << " Buffer remain size is to low for size type");563 << "Not enough data in buffer to unqueue the array."); 564 564 return buffer; 565 565 } -
XIOS/trunk/src/attribute.cpp
r501 r680 86 86 } 87 87 88 CMessage& operator<<(CMessage& msg, const CAttribute& 88 CMessage& operator<<(CMessage& msg, const CAttribute& type) 89 89 { 90 90 // msg.push(*type.clone()) ; … … 92 92 } 93 93 94 CBufferOut& operator<<(CBufferOut& buffer, CAttribute& 94 CBufferOut& operator<<(CBufferOut& buffer, CAttribute& type) 95 95 { 96 96 97 if (!type.toBuffer(buffer)) ERROR("CBufferOut& operator<<(CBufferOut& buffer, CAttribute& 98 <<"Buffer remain size is to low for size type");97 if (!type.toBuffer(buffer)) ERROR("CBufferOut& operator<<(CBufferOut& buffer, CAttribute& type)", 98 << "Not enough free space in buffer to queue the attribute."); 99 99 return buffer ; 100 100 } 101 101 102 CBufferIn& operator>>(CBufferIn& buffer, CAttribute& 102 CBufferIn& operator>>(CBufferIn& buffer, CAttribute& type) 103 103 { 104 104 105 if (!type.fromBuffer(buffer)) ERROR("CBufferInt& operator>>(CBufferIn& buffer, CAttribute& 106 << "Buffer remain size is to low for size type");105 if (!type.fromBuffer(buffer)) ERROR("CBufferInt& operator>>(CBufferIn& buffer, CAttribute& type)", 106 << "Not enough data in buffer to unqueue the attribute."); 107 107 return buffer ; 108 108 } -
XIOS/trunk/src/node/grid.hpp
r676 r680 264 264 if (this->getDataSize() != field.numElements()) 265 265 ERROR("void CGrid::inputField(const CArray<double,n>& field, CArray<double,1>& stored) const", 266 << "[ Awaiting size of the data = " << this->getDataSize()<< ", "266 << "[ Awaiting data of size = " << this->getDataSize() << ", " 267 267 << "Received data size = " << field.numElements() << " ] " 268 << "The array of data has not the good size!")268 << "The data array does not have the right size!") 269 269 this->storeField_arr(field.dataFirst(), stored); 270 270 } … … 277 277 << "[ Size of the data = " << this->getDataSize() << ", " 278 278 << "Output data size = " << field.numElements() << " ] " 279 << "The ouput array does not have notthe right size!")279 << "The ouput array does not have the right size!") 280 280 this->restoreField_arr(stored, field.dataFirst()); 281 281 } … … 314 314 { 315 315 if (gridMask.extent(i) != eachDimSize[i]) 316 317 << "The mask has one dimension whose size is different from the one of the local grid"<<endl318 << "Local size is "<< i << " " << eachDimSize[i]<<endl319 << "Mask dimension size is "<<gridMask.extent(i));316 ERROR("CGrid::checkMask(void)", 317 << "The mask has one dimension whose size is different from the one of the local grid." << std::endl 318 << "Local size of dimension " << i << " is " << eachDimSize[i] << "." << std::endl 319 << "Mask size for dimension " << i << " is " << gridMask.extent(i) << "."); 320 320 } 321 321 } -
XIOS/trunk/src/node/zoom_axis.cpp
r666 r680 40 40 if (this->zoom_end.isEmpty()) zoom_end=zoom_begin+zoom_size-1; 41 41 42 if ((zoom_begin < 0) || (zoom_begin > axisGlobalSize-1) || (zoom_end<0) || (zoom_end>axisGlobalSize-1) || (zoom_size<1) || (zoom_size>axisGlobalSize) || (zoom_begin>zoom_end)) 43 ERROR("CZoomAxis::checkAttributes(void)", 44 << "One or more attributes among <zoom_begin>, <zoom_end>, <zoom_size> of axis transformation [ id = '" << axisDest->getId() << "' , context = '" << CObjectFactory::GetCurrentContextId() << "' ] are not well specified"); 42 if (zoom_begin < 0 || zoom_begin > axisGlobalSize - 1 || zoom_end < 0 || zoom_end > axisGlobalSize - 1 43 || zoom_size < 1 || zoom_size > axisGlobalSize || zoom_begin > zoom_end) 44 ERROR("CZoomAxis::checkValid(CAxis* axisDest)", 45 << "One or more attributes among 'zoom_begin' (" << zoom_begin.getValue() << "), 'zoom_end' (" << zoom_end.getValue() << "), 'zoom_size' (" << zoom_size.getValue() << ") " 46 << "of axis transformation [ id = '" << axisDest->getId() << "' , context = '" << CObjectFactory::GetCurrentContextId() << "' ] are not well specified"); 45 47 46 48 this->zoom_begin.setValue(zoom_begin) ; -
XIOS/trunk/src/node/zoom_domain.cpp
r631 r680 35 35 this->zoom_ibegin.isEmpty() || this->zoom_jbegin.isEmpty()) 36 36 { 37 ERROR("CZoomDomain::checkValid(void)",38 <<"if one of zoom attributes is defined then all zoom attributes must be defined") ;37 ERROR("CZoomDomain::checkValid(CDomain* domainSrc)", 38 << "If one of zoom attributes is defined then all zoom attributes must be defined.") ; 39 39 } 40 40 else … … 43 43 int zoom_jend = zoom_jbegin + zoom_nj - 1; 44 44 45 if (zoom_ibegin < 0 || zoom_jbegin < 0 || zoom_iend > (ni_glo-1) || zoom_jend > (nj_glo-1)) 46 ERROR("CZoomDomain::checkValid(void)", 47 << "Zoom is wrongly defined," 48 << " Check the values : zoom_ni, zoom_nj, zoom_ibegin, zoom_jbegin") ; 45 if (zoom_ibegin < 0 || zoom_jbegin < 0 || zoom_iend > ni_glo - 1 || zoom_jend > nj_glo - 1) 46 ERROR("CZoomDomain::checkValid(CDomain* domainSrc)", 47 << "Zoom is wrongly defined, " 48 << "please check the values : 'zoom_ni' (" << zoom_ni.getValue() << "), 'zoom_nj' (" << zoom_nj.getValue() << "), " 49 << "'zoom_ibegin' (" << zoom_ibegin.getValue() << "), 'zoom_jbegin' (" << zoom_jbegin.getValue() << ")"); 49 50 } 50 51 } -
XIOS/trunk/src/object_factory_impl.hpp
r591 r680 62 62 63 63 ERROR("CObjectFactory::GetObject(const U * const object)", 64 << "[type = " << U::GetName() << ", " 65 << "adress = " << object << "]" 66 << " object was not found !"); 64 << "[type = " << U::GetName() << ", adress = " << object << "] " 65 << "object was not found."); 67 66 return (boost::shared_ptr<U>()); // jamais atteint 68 67 } … … 77 76 ERROR("CObjectFactory::GetObject(const StdString & id)", 78 77 << "[ id = " << id << ", U = " << U::GetName() << " ] " 79 << " object is not referenced !");78 << "object was not found."); 80 79 return (U::AllMapObj[CObjectFactory::CurrContext][id]); 81 80 } … … 87 86 ERROR("CObjectFactory::GetObject(const StdString & id)", 88 87 << "[ id = " << id << ", U = " << U::GetName() <<", context = "<<context<< " ] " 89 << " object is not referenced !");88 << "object was not found."); 90 89 return (U::AllMapObj[context][id]); 91 90 } -
XIOS/trunk/src/server.cpp
r655 r680 370 370 } 371 371 372 373 374 372 void CServer::registerContext(void* buff, int count, int leaderRank) 375 373 { … … 378 376 buffer >> contextId; 379 377 380 info(20) <<"CServer : Register new Context : "<<contextId<<endl;381 382 if (contextList.find(contextId) !=contextList.end())383 ERROR("void CServer::registerContext(void* buff,int count, int leaderRank)",384 << "Contexthas already been registred");378 info(20) << "CServer : Register new Context : " << contextId << endl; 379 380 if (contextList.find(contextId) != contextList.end()) 381 ERROR("void CServer::registerContext(void* buff, int count, int leaderRank)", 382 << "Context '" << contextId << "' has already been registred"); 385 383 386 384 MPI_Comm contextIntercomm; … … 398 396 MPI_Comm_free(&inter); 399 397 } 400 401 398 402 399 void CServer::contextEventLoop(void) -
XIOS/trunk/src/type/enum_impl.hpp
r591 r680 159 159 160 160 ERROR("template <typename T> void CEnum<T>::_fromString(const string& str)", 161 << tmpStr << " cannot be converted in a valid enumeration, possibilities are : "<<strList.str() );161 << tmpStr << " cannot be converted in a valid enumeration, possibilities are: " << strList.str()); 162 162 163 163 } … … 189 189 else if (sizeof(*ptrValue)==sizeof(int)) return buffer.put((int) *ptrValue) ; 190 190 else if (sizeof(*ptrValue)==sizeof(long int)) return buffer.put((long int) *ptrValue) ; 191 else ERROR("template <typename T> 192 << "incompatibility between enumeration and standard integer type");191 else ERROR("template <typename T> bool CEnum<T>::_toBuffer(CBufferOut& buffer) const", 192 << "incompatibility between enumeration and standard integer type."); 193 193 return false ; 194 194 } … … 217 217 if (ret) *ptrValue = (T_enum) val ; 218 218 } 219 else ERROR("template <typename T> 220 << "incompatibility between enumeration and standard integer type");219 else ERROR("template <typename T> bool CEnum<T>::_fromBuffer(CBufferIn& buffer)", 220 << "incompatibility between enumeration and standard integer type."); 221 221 return ret ; 222 222 } … … 246 246 void CEnum<T>::checkEmpty(void) const 247 247 { 248 if (empty) ERROR("template <typename T> void CEnum<T>::checkEmpty(void) const", <<"Type is not initialized") ; 248 if (empty) ERROR("template <typename T> void CEnum<T>::checkEmpty(void) const", 249 << "Enum is not initialized."); 249 250 } 250 251 … … 254 255 { 255 256 if (!type.toBuffer(buffer)) ERROR("template <typename T> CBufferOut& operator<<(CBufferOut& buffer, const CEnum<T>& type)", 256 <<"Buffer remain size is to low for size type");257 << "Not enough free space in buffer to queue the enum."); 257 258 return buffer ; 258 259 } … … 262 263 { 263 264 if (!CEnum<T>(type).toBuffer(buffer)) ERROR("template <typename T> CBufferOut& operator<<(CBufferOut& buffer, const typename T::t_enum & type)", 264 <<"Buffer remain size is to low for size type") ;265 << "Not enough free space in buffer to queue the enum."); 265 266 return buffer ; 266 267 } … … 269 270 CBufferIn& operator>>(CBufferIn& buffer, CEnum<T>& type) 270 271 { 271 if (! 272 <<"Buffer remain size is to low for size type");272 if (!type.fromBuffer(buffer)) ERROR("template <typename T> CBufferIn& operator>>(CBufferIn& buffer, CEnum<T>& type)", 273 << "Not enough data in buffer to unqueue the enum."); 273 274 return buffer ; 274 275 } -
XIOS/trunk/src/type/enum_ref_impl.hpp
r591 r680 160 160 161 161 ERROR("template <typename T> void CEnum_ref<T>::_fromString(const string& str)", 162 << tmpStr << " cannot be converted in a valid enumeration, possibilities are : "<<strList.str() );162 << tmpStr << " cannot be converted in a valid enumeration, possibilities are: " << strList.str()); 163 163 } 164 164 … … 178 178 else if (sizeof(*ptrValue)==sizeof(int)) return buffer.put((int) *ptrValue) ; 179 179 else if (sizeof(*ptrValue)==sizeof(long int)) return buffer.put((long int) *ptrValue) ; 180 else ERROR("template <typename T> 181 << "incompatibility between enumeration and standard integer type");180 else ERROR("template <typename T> bool CEnum_ref<T>::_toBuffer(CBufferOut& buffer) const", 181 << "incompatibility between enumeration and standard integer type."); 182 182 return false ; 183 183 } … … 206 206 if (ret) *ptrValue = (T_enum) val ; 207 207 } 208 else ERROR("template <typename T> 209 << "incompatibility between enumeration and standard integer type");208 else ERROR("template <typename T> bool CEnum_ref<T>::_fromBuffer(CBufferIn& buffer)", 209 << "incompatibility between enumeration and standard integer type."); 210 210 return ret ; 211 211 } … … 234 234 if (ret) *ptrValue = (T_enum) val ; 235 235 } 236 else ERROR("template <typename T> 237 << "incompatibility between enumeration and standard integer type");236 else ERROR("template <typename T> bool CEnum_ref<T>::_fromBuffer(CBufferIn& buffer)", 237 << "incompatibility between enumeration and standard integer type"); 238 238 } 239 239 … … 260 260 { 261 261 if (empty) ERROR("template <typename T> void CEnum_ref<T>::checkEmpty(void)", 262 << "Type_ref reference is not assigned") ;262 << "Enum reference is not initialized.") ; 263 263 } 264 264 … … 269 269 { 270 270 if (!type.toBuffer(buffer)) ERROR("template <typename T> CBufferOut& operator<<(CBufferOut& buffer, const CEnum_ref<T>& type)", 271 <<"Buffer remain size is to low for size type");271 << "Not enough free space in buffer to queue the enum."); 272 272 return buffer ; 273 273 } … … 277 277 { 278 278 if (!CEnum_ref<T>(type).toBuffer(buffer)) ERROR("template <typename T> CBufferOut& operator<<(CBufferOut& buffer, const typename T::t_enum& type)", 279 <<"Buffer remain size is to low for size type") ;279 << "Not enough free space in buffer to queue the enum."); 280 280 return buffer ; 281 281 } … … 284 284 CBufferIn& operator>>(CBufferIn& buffer, typename T::t_enum& type) 285 285 { 286 if (! 287 <<"Buffer remain size is to low for size type");286 if (!CEnum_ref<T>(type).fromBuffer(buffer)) ERROR("template <typename T> CBufferIn& operator>>(CBufferIn& buffer, typename T::t_enum& type)", 287 << "Not enough data in buffer to unqueue the enum."); 288 288 return buffer ; 289 289 } … … 292 292 CBufferIn& operator>>(CBufferIn& buffer, const CEnum_ref<T>& type) 293 293 { 294 if (! type.fromBuffer(buffer) ) ERROR(" template <typename T> CBufferIn& operator>>(CBufferIn& buffer, const CEnum_ref<T>& type) ", 295 <<"Buffer remain size is to low for size type") ; 294 if (!type.fromBuffer(buffer)) ERROR("template <typename T> CBufferIn& operator>>(CBufferIn& buffer, const CEnum_ref<T>& type) ", 295 << "Not enough data in buffer to unqueue the enum."); 296 return buffer ; 296 297 return buffer ; 297 298 } -
XIOS/trunk/src/type/message.cpp
r591 r680 79 79 { 80 80 if (!msg.toBuffer(buffer)) ERROR("CBufferOut& operator<<(CBufferOut& buffer, CMessage& msg)", 81 <<"Buffer remain size is to low for size type") ; 81 << "Not enough free space in buffer to queue the message."); 82 return buffer ; 82 83 return buffer ; 83 84 } … … 87 88 { 88 89 if (!msg.fromBuffer(buffer)) ERROR("CBufferIn& operator>>(CBufferIn& buffer, CMessage& msg)", 89 <<"Buffer remain size is to low for size type") ; 90 << "Not enough data in buffer to unqueue the message."); 91 return buffer ; 90 92 return buffer ; 91 93 } -
XIOS/trunk/src/type/type_impl.hpp
r591 r680 201 201 void CType<T>::checkEmpty(void) const 202 202 { 203 if (empty) ERROR("template <typename T> void CType f<T>::checkEmpty(void) const", <<"Typeis not initialized") ;203 if (empty) ERROR("template <typename T> void CType<T>::checkEmpty(void) const", << "Data is not initialized") ; 204 204 } 205 205 … … 209 209 { 210 210 if (!type.toBuffer(buffer)) ERROR("CBuffer& operator<<(CBuffer& buffer, CType<T>& type)", 211 <<"Buffer remain size is to low for size type");211 << "Not enough free space in buffer to queue the data."); 212 212 return buffer ; 213 213 } … … 218 218 { 219 219 if (!CType<T>(type).toBuffer(buffer)) ERROR("operator<<(CBuffer& buffer, const T& type)", 220 <<"Buffer remain size is to low for size type") ;220 << "Not enough free space in buffer to queue the data."); 221 221 return buffer ; 222 222 } 223 223 224 224 template <typename T> 225 225 CBufferIn& operator>>(CBufferIn& buffer, CType<T>& type) 226 226 { 227 227 if (! type.fromBuffer(buffer)) ERROR("CBuffer& operator<<(CBuffer& buffer, CType<T>& type)", 228 <<"Buffer remain size is to low for size type");228 << "Not enough data in buffer to unqueue the data."); 229 229 return buffer ; 230 230 } 231 232 /* 233 template <typename T> 234 CMessage& operator<<(CMessage& msg, const CType<T>& type) 235 { 236 msg.push(*type.clone()) ; 237 return msg ; 238 } 239 */ 231 240 232 template <typename T> 241 233 CMessage& operator<<(CMessage& msg, const T& type) -
XIOS/trunk/src/type/type_ref_impl.hpp
r591 r680 198 198 { 199 199 if (empty) ERROR("template <typename T> void CType_ref<T>::checkEmpty(void)", 200 <<" Type_ref reference is not assigned") ;200 <<"Data reference is not initialized.") ; 201 201 } 202 202 … … 207 207 { 208 208 if (!type.toBuffer(buffer)) ERROR("CBuffer& operator<<(CBuffer& buffer, CType<T>& type)", 209 <<"Buffer remain size is to low for size type");209 << "Not enough free space in buffer to queue the data."); 210 210 return buffer ; 211 211 } … … 215 215 { 216 216 if (!CType_ref<T>(type).toBuffer(buffer)) ERROR("CBufferOut& operator<<(CBufferOut& buffer, T& type)", 217 <<"Buffer remain size is to low for size type") ;217 << "Not enough free space in buffer to queue the data."); 218 218 return buffer ; 219 219 } … … 223 223 { 224 224 if (! CType_ref<T>(type).fromBuffer(buffer)) ERROR(" template <typename T> CBufferIn& operator>>(CBufferIn& buffer, T& type)", 225 <<"Buffer remain size is to low for size type");225 << "Not enough data in buffer to unqueue the data."); 226 226 return buffer ; 227 227 } … … 231 231 { 232 232 if (! type.fromBuffer(buffer) ) ERROR("CBuffer& operator<<(CBuffer& buffer, CType<T>& type)", 233 <<"Buffer remain size is to low for size type") ; 234 return buffer ; 235 } 236 237 238 /* 239 template <typename T> 240 CMessage& operator<<(CMessage& msg, const CType_ref<T>& type) 241 { 242 msg.push(type) ; 243 return msg ; 244 } 245 */ 233 << "Not enough data in buffer to unqueue the data."); 234 return buffer ; 235 } 246 236 247 237 template <typename T>
Note: See TracChangeset
for help on using the changeset viewer.