Loading updated counter utilities

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Loading updated counter utilities

  • Creator
    Topic
  • #53867
    Mark Thompson
    Participant

      I’m trying to modify where the Clovelreaf counter utilities (like CtrNextValue) create files when no directory path is specified.  The code isn’t hard, it’s just getting Cloverleaf to use it.

      Placing the updated code in a site or master site tclprocs directory (and running mktclindex) doesn’t help because the counter utilites are already loaded during Tcl initialization by $HCIROOT/tcl/lib/cloverleaf/init.tcl.

      I have not been successful in loading them from localInit.tcl either because they are already loaded at the point localInit gets called from init.tcl.

      I would prefer not to hack $HCIROOT/tcl/lib/util.tlib (where the Cloverleaf counter utilities are provided) because it gets overwritten with each version update.

      Any suggestions on how to get hcitcl – both command line and live engine – to use my version of the counter utils?

      (Yes, I know you can specify a path on the file name for existing counter utilities – that doesn’t accomplish our goal.)

      - Mark Thompson
      HealthPartners

    Viewing 0 reply threads
    • Author
      Replies
      • #79310
        David Barr
        Participant

          I would suggest making a copy and renaming them to something else. It’s probably not a good idea to edit util.tlib directly.

          I had to make my own copy when I made some changes to the netcfgLoad and similar procs.

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.