Konstantine Kourbatski
Ansys Employee

Is DEFINE_EXECUTE_AT_END executed at every iteration? Do you see printf outputs after each iteration? What may happen is the file is not overwritten at a subsequent execution, but this is a basic C programming question not related to ANSYS products