Skip to content
Snippets Groups Projects
Commit 013fc4a4 authored by patavirt's avatar patavirt
Browse files

core: explicit scalar type for action

parent 622647e2
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ public: ...@@ -116,7 +116,7 @@ public:
{ {
if (Q.dim(0) != nx_ || Q.dim(1) != ny_) if (Q.dim(0) != nx_ || Q.dim(1) != ny_)
throw std::out_of_range("Q array wrong size"); throw std::out_of_range("Q array wrong size");
return S(mask_, Q, omega_, U_, Omega_, Lx_, Ly_, eta_, D_); return S<Complex>(mask_, Q, omega_, U_, Omega_, Lx_, Ly_, eta_, D_);
} }
template <typename Scalar> template <typename Scalar>
...@@ -151,7 +151,7 @@ public: ...@@ -151,7 +151,7 @@ public:
CppAD::Independent(Q.storage(), dynamic); CppAD::Independent(Q.storage(), dynamic);
Array<ADComplex, Shape<1> > res; Array<ADComplex, Shape<1> > res;
res(0u) = S(mask_, Q, dynamic[0], U_, Omegadyn, Lx_, Ly_, eta_, D_); res(0u) = S<ADComplex>(mask_, Q, dynamic[0], U_, Omegadyn, Lx_, Ly_, eta_, D_);
return {Q.storage(), res.storage()}; return {Q.storage(), res.storage()};
} }
...@@ -402,7 +402,7 @@ public: ...@@ -402,7 +402,7 @@ public:
} }
Array<ADComplex, Shape<1> > res; Array<ADComplex, Shape<1> > res;
res(0u) = S(mask_, Qdyn, dynamic[0], U, Omegadyn, Lx_, Ly_, eta_, D_); res(0u) = S<ADComplex>(mask_, Qdyn, dynamic[0], U, Omegadyn, Lx_, Ly_, eta_, D_);
return {A.storage(), res.storage()}; return {A.storage(), res.storage()};
} }
...@@ -426,7 +426,7 @@ public: ...@@ -426,7 +426,7 @@ public:
CppAD::Independent(Omega.storage(), dynamic); CppAD::Independent(Omega.storage(), dynamic);
Array<ADComplex, Shape<1> > res; Array<ADComplex, Shape<1> > res;
res(0u) = S(mask_, Qdyn, dynamic[0], U_, Omega, Lx_, Ly_, eta_, D_); res(0u) = S<ADComplex>(mask_, Qdyn, dynamic[0], U_, Omega, Lx_, Ly_, eta_, D_);
return {Omega.storage(), res.storage()}; return {Omega.storage(), res.storage()};
} }
......
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