mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-14 09:58:22 +01:00
Fix output of exceptions
This commit is contained in:
parent
45c5e7bdfe
commit
b2157b8722
@ -187,11 +187,11 @@ public:
|
|||||||
|
|
||||||
boundary_condition &operator()(uint8_t side) {
|
boundary_condition &operator()(uint8_t side) {
|
||||||
if (dim != 1) {
|
if (dim != 1) {
|
||||||
throw std::invalid_argument("Explicit setting of bc value with 2 "
|
throw std::invalid_argument(
|
||||||
"parameters is only supported for 2D grids");
|
"Only 1D grid support 1 parameter in operator");
|
||||||
}
|
}
|
||||||
if (side > 1) {
|
if (side > 1) {
|
||||||
throw std::out_of_range("2D index out of range");
|
throw std::out_of_range("1D index out of range");
|
||||||
}
|
}
|
||||||
return bc_internal[side];
|
return bc_internal[side];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user