Hi,
I have a variable that is changing with each time step. I want to record the values for each time steps in a file.
OPEN(21,file=‘evolve.txt’,action=‘write’,position=‘append’)
WRITE (21,*) sim_time,x_c(2,2,2),x_al(2,2,2),phi_1(2,2,2), phi_2(2,2,2)
CLOSE(21)
But the problem is I want these variables of each time step in a single line. But they are giving output in different line for each variable.
Also, what type of format do I need to use to see them in 0.xxx format?