File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,31 @@ class TypeNTensor
5555
5656 TypeNTensor () : _coords(std::vector<T>(int_pow(LIBMESH_DIM, N))) {}
5757
58- TypeNTensor (const T &) : _coords(std::vector<T>(int_pow(LIBMESH_DIM, N))) {}
58+ TypeNTensor (const T &) : _coords(std::vector<T>(int_pow(LIBMESH_DIM, N)))
59+ {
60+ libmesh_not_implemented ();
61+ }
62+
63+ TypeNTensor (const TypeVector<T> &) : _coords(std::vector<T>(int_pow(LIBMESH_DIM, N)))
64+ {
65+ libmesh_not_implemented ();
66+ }
5967
60- TypeNTensor (const TypeVector<T> &) : _coords(std::vector<T>(int_pow(LIBMESH_DIM, N))) {}
68+ TypeNTensor (const TypeTensor<T> &) : _coords(std::vector<T>(int_pow(LIBMESH_DIM, N)))
69+ {
70+ libmesh_not_implemented ();
71+ }
6172
62- TypeNTensor (const TypeTensor<T> &) : _coords(std::vector<T>(int_pow(LIBMESH_DIM, N))) {}
73+ TypeNTensor (const TypeNTensor<N, T> & TN) : _coords(std::vector<T>(int_pow(LIBMESH_DIM, N)))
74+ {
75+ _coords = TN._coords ;
76+ }
6377
64- TypeNTensor (const TypeNTensor<N,T> &) : _coords(std::vector<T>(int_pow(LIBMESH_DIM, N))) {}
78+ TypeNTensor (const std::vector<T> & vec) : _coords(std::vector<T>(int_pow(LIBMESH_DIM, N)))
79+ {
80+ libmesh_assert (int_pow (LIBMESH_DIM, N) == vec.size ());
81+ _coords = vec;
82+ }
6583
6684 TypeNTensor & operator =(const TypeNTensor<N, T> &) { return *this ; }
6785
You can’t perform that action at this time.
0 commit comments