fortran95 Questions

1

Solved

Fortran 90 modules are evanescent creatures. I was using a (singular) module for a while with some success (compiling using Intel Visual Fortran and Visual Studio 2010). Then I wrote another module...

1

Solved

Say I have the below code: program test call foo call foo contains subroutine foo integer(8),dimension(:),allocatable:: var1 allocate(var1(10)) ... return end subroutine foo end will the...

1

I know of, and have used f2py2e to wrap some old Fortran 77 code, but my understanding is that it does not work with newer Fortran 95 code. I've researched what I should use, and have come across f...
Gallium asked 19/5, 2012 at 13:48

2

Solved

I have a test program here: program test implicit none integer(4) :: indp integer(4) :: t1(80) indp = -3 t1(indp) = 1 write(*,*) t1(indp) end program test in line 8 it is wrong...
Hearne asked 28/1, 2012 at 21:40

2

Solved

I tried to use forall to allocate dynamic arrays, but gfortran didn't like that. I also found out that write statements are forbidden in a forall block ,and I suspect read statements are too. Wha...
Hillari asked 22/12, 2011 at 10:33

2

Solved

I need to develop a library that opens a file and parses the stuff. The unit number, due to fortran IO style, must be decided by me, but I can't know what other units are open in the client code. ...
Kolosick asked 24/10, 2011 at 13:7

1

Solved

I'm learning Fortran90 after a brief introduction to Fortran77 a few years ago. When printing integers in Fortran, you must specify how many spaces you want to reserve for printing the integer. Con...
Walloping asked 21/1, 2011 at 15:35

5

Solved

In Fortran, a clear difference exists between function and subroutine: functions return one value, subroutines return no value. This introduce a cascade of differences between the two. One ex...
Impanel asked 15/10, 2010 at 11:21

© 2022 - 2024 — McMap. All rights reserved.