Re: tclBCArgs, passing floating point lists

From: Jim Phillips (jim_at_ks.uiuc.edu)
Date: Thu Jan 22 2015 - 14:27:15 CST

In SimParameters.h I see "char tclBCArg[128]" so it's limited to 127
characters. It would be easy to increase that array size, and a little
more work to make it dynamically sized. What size do you need?

Jim

On Thu, 22 Jan 2015, btreece_at_andrew.cmu.edu wrote:

> Hello,
> I keep running into a segmentation fault error when passing arguments into
> tclBCArgs like below:
>
> tclBC on
> tclBCScript {
> wrapmode cell
> proc calcforces {step unique static_logdens} {
> while {[nextatom]} { }
> }
> }
> tclBCArgs {"-16.11809565095832 -16.11809565095832 -16.11809565095832
> -16.11809565095832 -16.11809565095832 -16.11809565095832"}
>
> The above is only an example of how I was able to pinpoint the problem,
> not what I'm really trying to do. In fact, I remove one or two of the
> numbers in the list, everything runs fine. Otherwise, I believe it is
> crashing in the startup.
> Any help would be welcomed,
> Bradley Treece
>

This archive was generated by hypermail 2.1.6 : Tue Dec 27 2016 - 23:20:50 CST