Error when using "recorder mpco"

Hello! In this section we'll talk about the post processing module and the data visualization.
Post Reply
whzju
Posts: 8
Joined: Mon Oct 28, 2019 10:25 am

Error when using "recorder mpco"

Post by whzju » Wed Dec 18, 2019 1:35 pm

When I use "recorder mpco" function, this error came out.
I think this is because I used the function "clock" in my main tcl file.
Does anyone how to solve this problem?

#################################################################
couldn't read file "C:/Program Files/STKO/opensees/bin/tcl/lib/tcl8.6/clock.tcl": no such file or directory
while executing
"source -encoding utf-8 [file join $TclLibDir clock.tcl]"
(procedure "::tcl::clock::format" line 3)
invoked from within
"clock format [clock seconds]"
invoked from within
"if { $parallel == 0 } {
puts "Analysis started at: [clock format [clock seconds]]\n"
# clock format [clock seconds] -format "%T"
set start..."
(file "Pile_20191215.tcl" line 20)
##################################################################

Many thanks,
Huan

MassimoPetracca
Posts: 37
Joined: Wed Jul 24, 2019 11:10 am

Re: Error when using "recorder mpco"

Post by MassimoPetracca » Thu Dec 19, 2019 1:38 pm

don't use "format" otherwise tcl will look for the clock.tcl procedure, which is not included in the tcl folder that we distribute with STKO.

You can either just use "set time [clock seconds]" without the "format" option
or
You can copy a complete TCL installation in "C:\Program Files\STKO\opensees" (replacing the tcl folder there) and then you can use the "format" option

Typically what I do for timing a function is :
set time_start [clock milliseconds]
...
set time_end [clock milliseconds]
set elapsed [expr ($time_end - $time_start)/1000.0]
puts "Elapsed time: $elapsed sec."

whzju
Posts: 8
Joined: Mon Oct 28, 2019 10:25 am

Re: Error when using "recorder mpco"

Post by whzju » Sun Dec 22, 2019 2:24 pm

Got it.

Many thanks,
Huan

Post Reply