Assert (m[i] == v[i], ExcInternalError());
// this needs to throw an exception
- m[v.size()];
+ try
+ {
+ m[v.size()];
+ }
+ catch (...)
+ {
+ }
deallog << "OK" << std::endl;
}
// this now must throw an exception,
// though:
- Assert (BlockMask(12,true).n_selected_blocks(13) == 12,
- ExcInternalError());
+ try
+ {
+ Assert (BlockMask(12,true).n_selected_blocks(13) == 12,
+ ExcInternalError());
+ }
+ catch (...)
+ {
+ }
+
}
DEAL::OK
DEAL::ExcDimensionMismatch((n),(size()))
-DEAL::ExcDimensionMismatch((real_n),(block_mask.size()))
deallog << "OK" << std::endl;
// the following should yield an exception:
- Assert (BlockMask(12,true).first_selected_block(13) == 0,
- ExcInternalError());
- // as should this:
- Assert (BlockMask(12,false).first_selected_block() == 0,
- ExcInternalError());
+ try
+ {
+ Assert (BlockMask(12,true).first_selected_block(13) == 0,
+ ExcInternalError());
+ }
+ catch (...)
+ {
+ }
+
+ // as should this:
+ try
+ {
+ Assert (BlockMask(12,false).first_selected_block() == 0,
+ ExcInternalError());
+ }
+ catch (...)
+ {
+ }
}
DEAL::OK
DEAL::ExcDimensionMismatch((n),(size()))
DEAL::ExcMessage ("No block is selected at all!")
-DEAL::ExcInternalError()
Assert (m[i] == v[i], ExcInternalError());
// this needs to throw an exception
- m[v.size()];
+ try
+ {
+ m[v.size()];
+ }
+ catch (...)
+ {
+ }
deallog << "OK" << std::endl;
}
// this now must throw an exception,
// though:
- Assert (ComponentMask(12,true).n_selected_components(13) == 12,
- ExcInternalError());
+ try
+ {
+ Assert (ComponentMask(12,true).n_selected_components(13) == 12,
+ ExcInternalError());
+ }
+ catch (...)
+ {
+ }
+
}
DEAL::OK
DEAL::ExcDimensionMismatch((n),(size()))
-DEAL::ExcDimensionMismatch((real_n),(component_mask.size()))
deallog << "OK" << std::endl;
// the following should yield an exception:
- Assert (ComponentMask(12,true).first_selected_component(13) == 0,
- ExcInternalError());
+ try
+ {
+ Assert (ComponentMask(12,true).first_selected_component(13) == 0,
+ ExcInternalError());
+ }
+ catch (...)
+ {
+ }
+
// as should this:
- Assert (ComponentMask(12,false).first_selected_component() == 0,
- ExcInternalError());
+ try
+ {
+ Assert (ComponentMask(12,false).first_selected_component() == 0,
+ ExcInternalError());
+ }
+ catch (...)
+ {
+ }
}
DEAL::OK
DEAL::ExcDimensionMismatch((n),(size()))
DEAL::ExcMessage ("No component is selected at all!")
-DEAL::ExcInternalError()
// now try to convert to a block
// mask. this should not always
// work
- deallog << fe.block_mask (component_mask) << std::endl;
+ try
+ {
+ deallog << fe.block_mask (component_mask) << std::endl;
+ }
+ catch (...)
+ {
+ }
}
deallog << "OK" << std::endl;
DEAL::[false,false]
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[true,false]
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[false,false]
DEAL::[true,false]
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[false,true]
-DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[true,true]
-DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[false,true]
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[true,true]
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[false,false]
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[true,false]
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[false,false]
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[true,false]
DEAL::[false,true]
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[true,true]
DEAL::ExcMessage ("The component mask argument given to this function " "is not a mask where the individual components belonging " "to one block of the finite element are either all " "selected or not selected. You can't call this function " "with a component mask that splits blocks.")
-DEAL::[false,true]
DEAL::[true,true]
DEAL::OK