From f03cc636f2feafbc13fa4957f014b87b1acf4771 Mon Sep 17 00:00:00 2001 From: "Roy H. Stogner" Date: Thu, 13 Feb 2014 16:07:35 -0600 Subject: [PATCH] Fix vectorized photochemistry For me this triggered with vexcl, but it wouldn't have worked with any other runtime-resizeable vector classes either. With this fix, "make check" works for me again. --- src/kinetics/include/antioch/photochemical_rate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kinetics/include/antioch/photochemical_rate.h b/src/kinetics/include/antioch/photochemical_rate.h index 52a3d258..61c8ab17 100644 --- a/src/kinetics/include/antioch/photochemical_rate.h +++ b/src/kinetics/include/antioch/photochemical_rate.h @@ -72,7 +72,7 @@ namespace Antioch{ template ANTIOCH_AUTO(StateType) rate(const StateType& T) const - ANTIOCH_AUTOFUNC(StateType, StateType(_k)) + ANTIOCH_AUTOFUNC(StateType, Antioch::constant_clone(T, _k)) //! \return the derivative with respect to temperature. template