Changeset 27217 in project


Ignore:
Timestamp:
08/07/12 04:10:33 (9 years ago)
Author:
Ivan Raikov
Message:

nemo: removed hard coded model names from octave vclamp script generator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/nemo/trunk/extensions/nemo-vclamp.scm

    r27120 r27217  
    318318           (pp indent+ (lsode_options (,(str "absolute tolerance") #\, abstol) #\;)
    319319                       (lsode_options (,(str "relative tolerance") #\, reltol) #\;)
    320                        (lsode_options (,(str "integration method") #\, "bdf") #\;)
     320                       (lsode_options (,(str "integration method") #\, "\"bdf\"") #\;)
    321321                       (lsode_options (,(str "initial step size") #\, dt) #\;))
    322322
     
    349349            (pp indent (endfunction))
    350350
    351             (pp indent (function ilog = Khaliq03_vclamp (N #\, dt #\, vchold #\, vchdur #\, vcbase #\, vcdur #\, vcinc #\, vcsteps)))
     351            (pp indent (function ilog = ,(s+ sysname "_vclamp_fn") (N #\, dt #\, vchold #\, vchdur #\, vcbase #\, vcdur #\, vcinc #\, vcsteps)))
    352352
    353353            (pp indent+ (vc = vcbase #\;)
     
    368368            (pp (+ 2 indent+) (for j = 1:n))
    369369            (pp (+ 4 indent+)
    370                 (next = Khaliq03_currents_odepkg (ys "{i}"(j #\, :)) #\;)
     370                (next = ,(s+ sysname "_currents_odepkg") (ys "{i}"(j #\, :)) #\;)
    371371                (ilogv = vertcat (ilogv #\, next) #\;))
    372372            (pp (+ 2 indent+) (endfor #\; ))
     
    400400                               ,(matlab-name vcsteps)) )
    401401
    402                    (pp indent (,(s+ sysname "_ilog") = ,(s+ sysname "_vclamp")
     402                   (pp indent (,(s+ sysname "_ilog") = ,(s+ sysname "_vclamp_fn")
    403403                               ;; vchold,vchdur,vcbase,vcdur,vcinc,vcsteps
    404404                               (N #\, dt #\, ,(matlab-name vchold) #\,
Note: See TracChangeset for help on using the changeset viewer.