lib/gs2crmod/calculations.rb in gs2crmod-0.11.87 vs lib/gs2crmod/calculations.rb in gs2crmod-0.11.88
- old
+ new
@@ -666,13 +666,13 @@
alias :ctehfa :calculate_transient_es_heat_flux_amplifications
alias :ctehfa :calculate_transient_es_heat_flux_amplifications
def calculate_transient_amplification(vector, options={})
- if @g_exb_start_timestep
+ if @g_exb_start_timestep
return GSL::Sf::log(vector[@g_exb_start_timestep...-1].max / vector[@g_exb_start_timestep])/2
else
- eputs "Warning: could not calculate transient amplification since g_exb_start_timestep was not used. Returning 0."
+ eputs "Warning: set g_exb_start_timestep to calculate transient amplifications."
return 0
end
end
def ctan