ca1b000 发表于 2010-7-14 09:06:37

请教小的fish问题

初学flac,在编写fish的时候,有个小问题,大致命令如下:
array BBB(3)
BBB(1)=1
BBB(2)=3
BBB(3)=5
.............
.............
sel pile propdens=7850 emod=2.06e11 nu=0.3 xcarea=0.081417514 xcj=28.255297e-3 xciy=14.127648e-3 xciz=14.127648e-3 per=3.76992 &
cs_sk=sk_1 cs_scoh=TUCZL1 cs_sfric=0 &
cs_nk=nk_1 cs_ncoh=TUNJL1 cs_nfric=TUMCJ1 cs_ngap=off&
range cidBBB(1)BBB(2)

.............
............


在运行的时候,range cidBBB(1)BBB(2)这一块出错。。好像说什么格式转换不对。。


想请教下,range cid 后面不能用数组里的数吗????

schwein001 发表于 2010-7-14 15:49:03

手册里面,对数组的运用,有几条限制,就是禁止这种运用

the use of a fish array name as the source or destination for a numberin the , for instance set ,command is not allowed, and prompts an error message.

ca1b000 发表于 2010-7-15 13:59:29

手册里面,对数组的运用,有几条限制,就是禁止这种运用

the use of a fish array name as the source or destination for a numberin the , for instance set ,command is not allowed, and prompts an error mes ...
schwein001 发表于 2010-7-14 15:49





感谢。。。



有无解决办法?

linzhp 发表于 2011-1-7 17:25:32

只能将数组的值赋给一变量,再用变量代入指定位置,软件value位置处不支持数组元素形式如arr_a(1)或表达式形式如(a+b)等
页: [1]
查看完整版本: 请教小的fish问题