From cc96b4c4f6c5740ead8cd91543c2ac386dfc43bd Mon Sep 17 00:00:00 2001
From: David Andrs <david.andrs@inl.gov>
Date: Wed, 28 Mar 2012 12:10:45 -0600
Subject: [PATCH] Fixing initial condition setup for scalar variables of
 higher order

---
 include/numerics/wrapped_function.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/numerics/wrapped_function.h b/include/numerics/wrapped_function.h
index 3535064..393cb4d 100644
--- a/include/numerics/wrapped_function.h
+++ b/include/numerics/wrapped_function.h
@@ -178,7 +178,7 @@ void WrappedFunction<Output>::operator() (const Point& p,
 	  // We pass the point (j,0,0) to an old-style fptr function
 	  // pointer to distinguish the different scalars within the
 	  // SCALAR variable.
-          for (unsigned int j=1; j != n_components; ++j)
+          for (unsigned int j=0; j != n_components; ++j)
             output(_sys.variable_scalar_number(v,j)) =
 	       _fptr(Point(j,0,0), *_parameters,
                      _sys.name(), _sys.variable_name(v));
-- 
1.7.4.4

