Code review.  Loop flattening for efficiency.   Laura: please verify no change in your test results.
Code review.  Loop flattening for efficiency.  
Laura: please verify no change in your test results.


git-svn-id: c6750f7dd89925e309f580f56430152d063ff36c@134 aa0779c3-6ec2-4b84-a212-a405c134cd8d

pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA,pemryan/DAKOTA