From 6c574f5f886e0614a415593e2e12494e21469c6c Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 27 Nov 2012 14:15:55 -0500 Subject: move Maxwell distribution from computed vector to just a vector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to suggestion of Graham Dennis, this skip unnecessary calculations of the Maxwell probability distributions at every step since. Thus avoids recalculation. Below the original comment: Your computed_vector's "Maxwell_distribution_probabilities" and "Maxwell_distribution_probabilities_norm" are constant.  If you just change them to be elements changing the tags to tags, this will ensure that they are not evaluated every time they are needed. --- xmds2/realistic_Rb/realistic_Rb.xmds | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xmds2/realistic_Rb/realistic_Rb.xmds b/xmds2/realistic_Rb/realistic_Rb.xmds index 94b398c..57e7425 100644 --- a/xmds2/realistic_Rb/realistic_Rb.xmds +++ b/xmds2/realistic_Rb/realistic_Rb.xmds @@ -185,29 +185,29 @@ const double rt2 = 1.4142135623730951; - + probability_v - + - - + + - + probability_v_norm - + Maxwell_distribution_probabilities - - + + -- cgit v1.2.3