when i want to write it into a file it shows error(format/variable-type mismach).it does not work correctly.like this:
open(44,file='C:\IM.txt')
write(44, fmt=10, advance='no') '{{{'
do i = 1, N
write(44, fmt=20, advance='no') ' ', b(i)
end do
write(44, fmt=10) '}}}'
10 format(a3)
20...
i would like to write a txt in this format:
{{{ 1 2 3 4 5 .... }}}
for example a(i)=1 2 3 4 .... N
but N is variable and differ each time
this is part of my program but it seems to be wrong :
write(430,44) (b(i),i=1,N) !N<50
44 format(' {{{ ',50F6.3,'}}}')
after runing program...
thanks for your help.This is an other problem.it does not refer to X1 and X2.I didi not use X1 and X2.
[I have some folders with name like this:(2V or 4G or 9D)
the first part is number ,the second part is letter.what kind of variable I should define for "folder" variable??
how can I assign for...
I have some folders with name like this:(2V or 4G or 9D)
the first part is number ,the second part is letter.what kind of variable I should define for "folder" variable??
how can I assign for example 2V to "folder"??(folder=2V)
I defined it as (F2.0) but it seems to be wrong
11 format...
thanks for your help .here are some questions:
1.where can I assign X1=0.05 and X2=0.10?
2.when I ran this code,it show what variables X1 and X2 are?(we did not defined X1 and X2 in the begining of the program)
I had a problem on my program
this is my program:
program iso
implicit none
real , dimension(1000) :: St01,St02
integer :: k
X1=0.05 (variable & Changeable)
X2=0.1 (variable & Changeable)
open(1,file='D:\X1\ST01_drift.txt')
open(2,file='D:\X2\ST02_drift.txt')
Do k = 1,1000
read(1,*) st01(k)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.