/**
* Exception.
*/
- DeclException1 (ExcInvalidTensorIndex,
+ DeclException1 (ExcInvalidTensorContractionIndex,
int,
- << "Invalid tensor index " << arg1);
+ << "You have requested contraction of tensors over index "
+ << arg1
+ << ", but this is not possible for tensors of the current type.");
/**
* Read or write the data of this object to or from a stream for the purpose
default:
Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorIndex (index2)));
+ (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
};
break;
case 2:
default:
Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorIndex (index2)));
+ (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
};
break;
default:
- Assert (false, (typename Tensor<2,dim,Number>::ExcInvalidTensorIndex (index1)));
+ Assert (false, (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index1)));
};
}
default:
Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorIndex (index1)));
+ (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index1)));
};
}
break;
default:
Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorIndex (index2)));
+ (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
}
break;
break;
default:
Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorIndex (index2)));
+ (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
}
break;
break;
default:
Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorIndex (index2)));
+ (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
}
break;
default:
Assert (false,
- (typename Tensor<3,dim,Number>::ExcInvalidTensorIndex (index1)));
+ (typename Tensor<3,dim,Number>::ExcInvalidTensorContractionIndex (index1)));
}
}