Skip to content
Snippets Groups Projects
Commit 1b64288c authored by Rene Redler's avatar Rene Redler
Browse files

adds error message

parent b97736d5
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ int Yac2GridDefiner::define_mask(std::unique_ptr<yaco::Grid> &grid){
int maskId = 0;
if(gridId_ == -1){
//TODO ERROR HANDLING
throw std::runtime_error("Error in Yac2GridDefiner: gridId not yet available!");
}
cellMask_ = std::vector<int>(static_cast<std::size_t>(grid->nbrCells()), 1);
yac_cdef_mask(gridId_, grid->nbrCells(), YAC_LOCATION_CELL, cellMask_.data(), &maskId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment