Added labelSphericalTensor to handle labelI correctly.

This commit is contained in:
henry
2008-06-10 14:59:49 +01:00
parent 5569015b4a
commit e95a6955b9
7 changed files with 130 additions and 23 deletions

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Type
labelTensor
Foam::labelTensor
Description
3D labelTensor obtained from generic Tensor
@ -48,15 +48,6 @@ namespace Foam
typedef Tensor<label> labelTensor;
// Identity labelTensor
static const labelTensor labelI
(
1, 0, 0,
0, 1, 0,
0, 0, 1
);
//- Specify data associated with labelTensor type is contiguous
template<>
inline bool contiguous<labelTensor>() {return true;}