Calculate current compute
Hi,
I'm trying to use a compute in a variable. I know that a compute doesnt mean that it is calculated, so I want to use fix ave/time for calculation.
compute A thirdgroup reduce max y
fix currentstatus all ave/time 100 1 100 c_A
run 1
variable B equal c_A
print '$B'
this doesnt work. Just when I use the thermo_style it works:
compute A thirdgroup reduce max y
thermo_style custom step atoms ke vol dt etotal c_A
run 1
variable B equal c_A
print '$B'
Forums:
- Read more about Calculate current compute
- 3 comments
- Log in or register to post comments