stellarowl12
Programmer
So I'm a beginning programmer and Fortran pretty much blows my mind. I am trying to edit the dualfoil5.1.f and the dualfoil5.in files from
Basically, in the dualfoil5.in file these lines (line 60):
1 ! lcurs, number of current changes
20.0d0 60.0d0 1 2.0d0 4.70d0 !Discharge at 10A/m2 for 60min, low/high cutoff 2.0/4.7 V
If I wanted 2 current changes I would have to do:
2 ! lcurs
20.0d0 60.0d0 1 2.0d0 4.70d0
0.0d0 60.0d0 1 2.0d0 4.70d0
For 6 current changes, I would have to copy and past those bottom two lines 3 times. In the end, I want to have maybe a 1000 current changes (for short time intervals) so I was thinking I would have to write a while loop into the .in file. However, I think the .f file does not allow me to write a while loop after the lcurs line since it is expecting something else. Can anyone help me with where to put the while loop (should it be inside the .f file? and where exactly should it go so that it can read data from the .in file and compute based on that)
Thanks so much in advance,
Kevin
Basically, in the dualfoil5.in file these lines (line 60):
1 ! lcurs, number of current changes
20.0d0 60.0d0 1 2.0d0 4.70d0 !Discharge at 10A/m2 for 60min, low/high cutoff 2.0/4.7 V
If I wanted 2 current changes I would have to do:
2 ! lcurs
20.0d0 60.0d0 1 2.0d0 4.70d0
0.0d0 60.0d0 1 2.0d0 4.70d0
For 6 current changes, I would have to copy and past those bottom two lines 3 times. In the end, I want to have maybe a 1000 current changes (for short time intervals) so I was thinking I would have to write a while loop into the .in file. However, I think the .f file does not allow me to write a while loop after the lcurs line since it is expecting something else. Can anyone help me with where to put the while loop (should it be inside the .f file? and where exactly should it go so that it can read data from the .in file and compute based on that)
Thanks so much in advance,
Kevin