template <class Archive>
void serialize(Archive &ar, const unsigned int version);
- /**
- * Exception.
- */
- DeclException1 (ExcInvalidTensorContractionIndex,
- int,
- << "You have requested contraction of tensors over index "
- << arg1
- << ", but this is not possible for tensors of the current type.");
-
/**
* Internal type declaration that is used to specialize the return type
* of operator[]() for Tensor<1,dim,Number>
*/
//@{
+/**
+ * Exception.
+ *
+ * @deprecated
+ */
+DeclException1 (ExcInvalidTensorContractionIndex,
+ int,
+ << "You have requested contraction of tensors over index "
+ << arg1
+ << ", but this is not possible for tensors of the current type.");
+
/**
* Double contract two tensors of rank 2, thus computing the Frobenius inner
break;
default:
- Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
+ Assert (false, (ExcInvalidTensorContractionIndex (index2)));
};
break;
case 2:
break;
default:
- Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
+ Assert (false, (ExcInvalidTensorContractionIndex (index2)));
};
break;
default:
- Assert (false, (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index1)));
+ Assert (false, (ExcInvalidTensorContractionIndex (index1)));
};
}
break;
default:
- Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index1)));
+ Assert (false, (ExcInvalidTensorContractionIndex (index1)));
};
}
dest[i][j][k] += src1[l][i][j] * src2[k][l];
break;
default:
- Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
+ Assert (false, (ExcInvalidTensorContractionIndex (index2)));
}
break;
dest[i][j][k] += src1[i][l][j] * src2[k][l];
break;
default:
- Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
+ Assert (false, (ExcInvalidTensorContractionIndex (index2)));
}
break;
dest[i][j][k] += src1[i][j][l] * src2[k][l];
break;
default:
- Assert (false,
- (typename Tensor<2,dim,Number>::ExcInvalidTensorContractionIndex (index2)));
+ Assert (false, (ExcInvalidTensorContractionIndex (index2)));
}
break;
default:
- Assert (false,
- (typename Tensor<3,dim,Number>::ExcInvalidTensorContractionIndex (index1)));
+ Assert (false, (ExcInvalidTensorContractionIndex (index1)));
}
}