Changeset 2282
- Timestamp:
- 01/07/22 16:09:50 (3 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/extern/remap/src/polyg.cpp
r1614 r2282 98 98 else if (n == 2) return midpoint(x[0], x[1]); 99 99 else if (n == 1) return x[0]; 100 101 error_exit( "Missing return in : Coord exact_barycentre(const Coord *x, int n)" ); 102 return ORIGIN; 100 103 } 101 104 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/cxios.cpp
r2274 r2282 310 310 if (isClient) return CClient::getPoolRessource() ; 311 311 else if (isServer) return CServer::getServersRessource()->getPoolRessource() ; 312 313 MISSING_RETURN( "CPoolRessource* CXios::getPoolRessource()" ); 314 return nullptr; 312 315 } 313 316 } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/server_distribution_description.cpp
r1918 r2282 39 39 default: 40 40 break; 41 } 41 } 42 43 MISSING_RETURN( "int CServerDistributionDescription::defaultDistributedDimension(int gridDimension, ServerDistributionType serType)" ); 44 return -1; 42 45 } 43 46 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/exception.hpp
r1622 r2282 75 75 xios::CException exc(id); \ 76 76 exc.getStream() << INFO(x); \ 77 error << exc.getMessage() << std::endl; \ 78 throw exc; \ 79 } 80 81 #define MISSING_RETURN(id) \ 82 { \ 83 xios::CException exc(id); \ 84 exc.getStream() << INFO("Missing return"); \ 77 85 error << exc.getMessage() << std::endl; \ 78 86 throw exc; \ -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/axis.hpp
r2274 r2282 209 209 if (hasDirectAxisReference()) if (!getDirectAxisReference()->isCompleted()) return false; 210 210 else return isCompleted_ ; 211 212 MISSING_RETURN( "bool CAxis::isCompleted() " ); 213 return true; 211 214 } 212 215 void setCompleted(void) { isCompleted_=true ; } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/domain.hpp
r2274 r2282 175 175 if (hasDirectDomainReference()) if (!getDirectDomainReference()->isCompleted()) return false; 176 176 else return isCompleted_ ; 177 178 MISSING_RETURN( "bool CDomain::isCompleted() " ); 179 return true; 177 180 } 178 181 void setCompleted(void) { isCompleted_=true ; } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp
r2270 r2282 461 461 } 462 462 } 463 464 MISSING_RETURN( "CDomain* CGrid::getAssociatedDomain(const string& domainId, bool noError)" ); 465 return nullptr; 463 466 } 464 467 … … 525 528 } 526 529 } 530 531 MISSING_RETURN( "CAxis* CGrid::getAssociatedAxis(const string& axisId, bool noError)" ); 532 return nullptr; 527 533 } 528 534 … … 589 595 } 590 596 } 597 598 MISSING_RETURN( "CScalar* CGrid::getAssociatedScalar(const string& scalarId, bool noError)" ); 599 return nullptr; 591 600 } 592 601 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/scalar.hpp
r2274 r2282 167 167 if (hasDirectScalarReference()) if (!getDirectScalarReference()->isCompleted()) return false; 168 168 else return isCompleted_ ; 169 170 MISSING_RETURN( "bool CAxis::isCompleted() " ); 171 return true; 169 172 } 170 173 void setCompleted(void) { isCompleted_=true ; } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_interpolate_coordinate.cpp
r2270 r2282 69 69 } 70 70 if (pos==1) return false ; 71 72 MISSING_RETURN( "bool CAxisAlgorithmInterpolateCoordinate::transformAuxField(int pos)" ); 73 return false; 71 74 } 72 75
Note: See TracChangeset
for help on using the changeset viewer.