Tricky Tips of IFortran

Don’t know why but some tricky things – small but rather annoying if neglegence:

1. character(len=xx) :: stringwrite(unit = string, ‘(A)’) i
Note: xx SHOULD BE LONGER than 12…

2. use open(unit=xx, file=xx, form=’UNFORMATTED’) rather than open(unit=xx, file=xx, form=’BINARY’) if you want to read the file.
in my program, backspace() was used, which caused troubles with the Binary format
don’t know why, but frustrating me for almost a whole day!!

Advertisements

About yhtian

I am an academic researcher working on Offshore Geotechnical Engineering. My blog aims to write down some work related trivial things and tricks about software, programming. It is basically a memo for me to back up some thoughts and small details. But I am more than happy if someone would visit and discuss.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s