Show
Ignore:
Timestamp:
03/02/10 11:11:07 (2 years ago)
Author:
apdavison
Message:

Added the ability to set the atol and rtol parameters of NEURON's cvode solver in the extra_params argument of setup() (patch from Johannes Partzsch).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/neuron/__init__.py

    r713 r719  
    5858    if extra_params.has_key('use_cvode'): 
    5959        simulator.state.cvode.active(int(extra_params['use_cvode'])) 
     60        if extra_params.has_key('rtol'): 
     61            simulator.state.cvode.rtol(float(extra_params['rtol'])) 
     62        if extra_params.has_key('atol'): 
     63            simulator.state.cvode.atol(float(extra_params['atol'])) 
    6064    return rank() 
    6165