Skip to content

Commit ca53b0b

Browse files
committed
Throw IdSet::id for Entity<1>
1 parent 2caf976 commit ca53b0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opm/grid/cpgrid/Indexsets.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ namespace Dune
228228
else if constexpr (std::is_same_v<EntityType, cpgrid::Entity<3>>) {
229229
return computeId_point(e);
230230
}
231-
else if (std::is_same_v<EntityType, cpgrid::Entity<2>>) {
232-
OPM_THROW(std::logic_error, "IdSet::id not implemented for codims other thatn 0, 1, and 3.");
231+
else if (std::is_same_v<EntityType, cpgrid::Entity<1>> || std::is_same_v<EntityType, cpgrid::Entity<2>>) {
232+
OPM_THROW(std::logic_error, "IdSet::id not implemented for codims other than 0 and 3.");
233233
}
234-
else { // Entity<1> and EntityRep<codim> fall in this case.
234+
else { // EntityRep<codim> fall in this case.
235235
return computeId(e);
236236
}
237237
}

0 commit comments

Comments
 (0)