[lammps-users] ERROR: Illegal fix ave/time command

Hi all,

I was trying to use "fix ave/time " command for more than 800
computes, and the ERROR: Illegal fix ave/time command occurs. I guess
it means the number of computes i'm averaging is too large ? Where is
the default setting, so I can change it ?

Thanks,

Ajing

fix 19 all ave/time 1 100000 100000 c_1 c_2 c_3 c_4 c_5
c_6 c_7 c_8 c_9 c_10 c_11 c_12 c_13 c_14 c_15 c_16 c_17 c_18 c_19
c_20 c_21 c_22 c_23 c_24 c_25 c_26 c_27 c_28 c_29 c_30 c_31 c_32
c_33 c_34 c_35 c_36 c_37 c_38 c_39 c_40 c_41 c_42 c_43 c_44 c_45
c_46 c_47 c_48 c_49 c_50 c_51 c_52 c_53 c_54 c_55 c_56 c_57 c_58
c_59 c_60 c_61 c_62 c_63 c_64 c_65 c_66 c_67 c_68 c_69 c_70 c_71
c_72 c_73 c_74 c_75 c_76 c_77 c_78 c_79 c_80 c_81 c_82 c_83 c_84
c_85 c_86 c_87 c_88 c_89 c_90 c_91 c_92 c_93 c_94 c_95 c_96 c_97
c_98 c_99 c_100 c_101 c_102 c_103 c_104 c_105 c_106 c_107 c_108
c_109 c_110 c_111 c_112 c_113 c_114 c_115 c_116 c_117 c_118 c_119
c_120 c_121 c_122 c_123 c_124 c_125 c_126 c_127 c_128 c_129 c_130
c_131 c_132 c_133 c_134 c_135 c_136 c_137 c_138 c_139 c_140 c_141
c_142 c_143 c_144 c_145 c_146 c_147 c_148 c_149 c_150 c_151 c_152
c_153 c_154 c_155 c_156 c_157 c_158 c_159 c_160 c_161 c_162 c_163
c_164 c_165 c_166 c_167 c_168 c_169 c_170 c_171 c_172 c_173 c_174
c_175 c_176 c_177 c_178 c_179 c_180 c_181 c_182 c_183 c_184 c_185
c_186 c_187 c_188 c_189 c_190 c_191 c_192 c_193 c_194 c_195 c_196
c_197 c_198 c_199 c_200 c_201 c_202 c_203 c_204 c_205 c_206 c_207
c_208 c_209 c_210 c_211 c_212 c_213 c_214 c_215 c_216 c_217 c_218
c_219 c_220 c_221 c_222 c_223 c_224 c_225 c_226 c_227 c_228 c_229
c_230 c_231 c_232 c_233 c_234 c_235 c_236 c_237 c_238 c_239 c_240
c_241 c_242 c_243 c_244 c_245 c_246 c_247 c_248 c_249 c_250 c_251
c_252 c_253 c_254 c_255 c_256 c_257 c_258 c_259 c_260 c_261 c_262
c_263 c_264 c_265 c_266 c_267 c_268 c_269 c_270 c_271 c_272 c_273
c_274 c_275 c_276 c_277 c_278 c_279 c_280 c_281 c_282 c_283 c_284
c_285 c_286 c_287 c_288 c_289 c_290 c_291 c_292 c_293 c_294 c_295
c_296 c_297 c_298 c_299 c_300 c_301 c_302 c_303 c_304 c_305 c_306
c_307 c_308 c_309 c_310 c_311 c_312 c_313 c_314 c_315 c_316 c_317
c_318 c_319 c_320 c_321 c_322 c_323 c_324 c_325 c_326 c_327 c_328
c_329 c_330 c_331 c_332 c_333 c_334 c_335 c_336 c_337 c_338 c_339
c_340 c_341 c_342 c_343 c_344 c_345 c_346 c_347 c_348 c_349 c_350
c_351 c_352 c_353 c_354 c_355 c_356 c_357 c_358 c_359 c_360 c_361
c_362 c_363 c_364 c_365 c_366 c_367 c_368 c_369 c_370 c_371 c_372
c_373 c_374 c_375 c_376 c_377 c_378 c_379 c_380 c_381 c_382 c_383
c_384 c_385 c_386 c_387 c_388 c_389 c_390 c_391 c_392 c_393 c_394
c_395 c_396 c_397 c_398 c_399 c_400 c_401 c_402 c_403 c_404 c_405
c_406 c_407 c_408 c_409 c_410 c_411 c_412 c_413 c_414 c_415 c_416
c_417 c_418 c_419 c_420 c_421 c_422 c_423 c_424 c_425 c_426 c_427
c_428 c_429 c_430 c_431 c_432 c_433 c_434 c_435 c_436 &
ERROR: Illegal fix ave/time command

2010/8/15 Albert Cao <[email protected]>:

Hi all,

I was trying to use "fix ave/time " command for more than 800
computes, and the ERROR: Illegal fix ave/time command occurs. I guess
it means the number of computes i'm averaging is too large ? Where is
the default setting, so I can change it ?

there is no default setting. this is dynamically allocated. have a look at
the source. more likely, your command line is too long or has an unexpected
linebreak somewhere.

in general, when i see something as extreme as this, i take it as
an indication that this is the wrong method to solve an issue.
it might be easier and more efficient to write a custom compute
that does all of them in one go.

axel.

See comments below.

Steve

2010/8/15 Albert Cao <[email protected]>:

Hi all,

I was trying to use "fix ave/time " command for more than 800
computes, and the ERROR: Illegal fix ave/time command occurs. I guess
it means the number of computes i'm averaging is too large ? Where is
the default setting, so I can change it ?

there is no default setting. this is dynamically allocated. have a look at
the source. more likely, your command line is too long or has an unexpected
linebreak somewhere.

yes - I agree. You can look in input.cpp for these settings like line length.
There is no intrinsic limit on the number of arguments or # of computes that
fix ave/time can handle.

in general, when i see something as extreme as this, i take it as
an indication that this is the wrong method to solve an issue.
it might be easier and more efficient to write a custom compute
that does all of them in one go.

yes - I agree. What are you trying to do and why do you have
800 computes defined?

Axel and Steve,

I was trying to compute temperature distribution of a computation domain. To get high resolution, I need more than 800 computes to average. I have successfully done this with 400 computes. But when comes to 800, the error occurs. I carefully check the input script and there was no obvious typos there. I even gave another try:

fix 1 ave/time c_1 … c_400
fix 2 ave/time c_401 … c_800

And it turned out the second line results in the error. So I was wondering if this is sth related to the default settings. Then you confirmed this is not the case. So I’m confused about where I did was wrong. I think it must be sth inconsistent with some settings or exceed the maximum values.

Regards,

Ajing

My guess is its a line length problem - see the MAXLINE setting at
the top of input.cpp.

You could verify this by splitting it into 4 commands instead of 2.
Probably the 2nd one is a bit too long and truncated stuff is
being passed to the compute.

Steve