| 1 |
""" |
| 2 |
Module containing CPPStandalone CodeObject for code generation for integration using the ODE solver provided in the |
| 3 |
GNU Scientific Library |
| 4 |
""" |
| 5 |
|
| 6 |
from brian2.codegen.generators.cpp_generator import CPPCodeGenerator |
| 7 |
from brian2.codegen.generators.GSL_generator import GSLCPPCodeGenerator |
| 8 |
from brian2.devices.cpp_standalone import CPPStandaloneCodeObject |
| 9 |
|
| 10 |
|
| 11 |
class GSLCPPStandaloneCodeObject(CPPStandaloneCodeObject): |
| 12 |
templater = CPPStandaloneCodeObject.templater.derive( |
| 13 |
"brian2.devices.cpp_standalone", templates_dir="templates_GSL" |
| 14 |
) |
| 15 |
original_generator_class = CPPCodeGenerator |
| 16 |
generator_class = GSLCPPCodeGenerator |