by having only a single return statement.
git-svn-id: https://svn.dealii.org/trunk@11161
0785d39b-7218-0410-832d-
ea1e28bc413d
{
case 1:
return_tensor[0][0] = 1.0/t[0][0];
- return return_tensor;
+ break;
+
case 2:
// this is Maple output,
// thus a bit unstructured
return_tensor[0][1] = -t[0][1]*t4;
return_tensor[1][0] = -t[1][0]*t4;
return_tensor[1][1] = t[0][0]*t4;
- return return_tensor;
- };
+ break;
+ }
case 3:
{
return_tensor[2][0] = -(-t[1][0]*t[2][1]+t[1][1]*t[2][0])*t07;
return_tensor[2][1] = -(t[0][0]*t[2][1]-t01)*t07;
return_tensor[2][2] = (t4-t8)*t07;
- return return_tensor;
- };
+
+ break;
+ }
// if desired, take over the
// inversion of a 4x4 tensor
default:
AssertThrow (false, ExcNotImplemented());
- };
+ }
return return_tensor;
}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams