Skip to content
Snippets Groups Projects
Commit 9a1d4bf9 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

specify the number type when assigning from scalar

[[Imported from SVN: r9385]]
parent f8bcc79e
No related branches found
No related tags found
No related merge requests found
...@@ -627,7 +627,7 @@ public: ...@@ -627,7 +627,7 @@ public:
static void getSecondDerivativesOfDirectors(Dune::array<Tensor3<T,3, 4, 4>, 3>& dd_dq_dq) static void getSecondDerivativesOfDirectors(Dune::array<Tensor3<T,3, 4, 4>, 3>& dd_dq_dq)
{ {
for (int i=0; i<3; i++) for (int i=0; i<3; i++)
dd_dq_dq[i] = 0; dd_dq_dq[i] = T(0);
dd_dq_dq[0][0][0][0] = 2; dd_dq_dq[0][0][1][1] = -2; dd_dq_dq[0][0][2][2] = -2; dd_dq_dq[0][0][3][3] = 2; dd_dq_dq[0][0][0][0] = 2; dd_dq_dq[0][0][1][1] = -2; dd_dq_dq[0][0][2][2] = -2; dd_dq_dq[0][0][3][3] = 2;
dd_dq_dq[0][1][0][1] = 2; dd_dq_dq[0][1][1][0] = 2; dd_dq_dq[0][1][2][3] = 2; dd_dq_dq[0][1][3][2] = 2; dd_dq_dq[0][1][0][1] = 2; dd_dq_dq[0][1][1][0] = 2; dd_dq_dq[0][1][2][3] = 2; dd_dq_dq[0][1][3][2] = 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment