This Blog "Scientific View" is from Japan, blordcasted by aohmusi (physics student). In this site I will blordcast you some interest thing for ME. Then FOR ME, I love to study science, so this blog has a scientific view. Please feel free to contact and tell me how do you think about my Views.

全ブログの Index
投稿の仕方

 | リンク集 New!! | 日記 | 研究記 | 詩集 | 

2010年7月19日月曜日

fortran:trim(text)

fortran:trim(text)
text の後半にある空白文字を消去する

write() text <-- 後半に空白文字
write() trim(text) <-- 前半に空白文字

Fortran runtime error: File already opened in another unit

Fortran runtime error: File already opened in another unit

do n=1,100
open(n,file=file_name)
end do

で、file_nameの値が、ループ内で変わっていないと出るエラー