Description:
Discussion about FORTRAN.
|
|
|
direct access file read
|
| |
Hello friends,
I am trying to learn to use direct access file.
Say for simplest example, I have a data file(just random example):
0000
0032
1201
1234
4567
7890
2324
2013
Now, I want to read the last half (i.e. line #5-8). ***important question: Is this the situation we use direct access?... more »
|
|
Add element to a polymorphic arrar
|
| |
Hi,
it is easy to reallocate an add an item to a non-polymorphic array
subroutine add_element_int(a,e)
integer,allocatable,intent(ino ut) :: a(:)
integer,intent(in) :: e
integer,allocatable :: tmp(:)
if (.not.allocated(a)) then
a = [e]
else... more »
|
|
|