- #1
Telemachus
- 835
- 30
Well, I'm trying to move a bit into modern Fortran, and I am more used to Fortran77 syntax.
So, for example, when I wanted to make an array whose two of its components equal another array of another dimension, I used to do something like this:
So that would do the job for what I need. My doubt is if with modern Fortran I could do it this way:
Thanks in advance.
So, for example, when I wanted to make an array whose two of its components equal another array of another dimension, I used to do something like this:
Fortran:
do k=1,N
do j=1,N
do i=1,N
f(i,j,k)=f(i,j)
enddo
enddo
enddo
So that would do the job for what I need. My doubt is if with modern Fortran I could do it this way:
Fortran:
do k=1,N
f(:,:,k)=f(:,:)
enddo
Thanks in advance.