Hi, After trawling google, I was wondering if anyone could direct me in the right direction on here.
Basically I have been writing extremely long programs to write a series of packages (ascii text files) that are used in a 3rd party software package. I want to be able to do this:
(This is my main program where I assign parameter arrays)
program hello
implicit none
real(kind(0d0)) :: tmpdate
tmpdate = 23.2
print *, 'Hello World! Calling Module'
use hello2
end program hello
I want to call a series of modules to write out the arrays specified in the Main program.... e.g.
module hello2
implicit none
real(kind(0d0)) :: tmpdate
tmpdate = 23.2
write(*,*)tmpdate
end module hello2
The modules will saved as separate f90 files. e.g. write_file1.f90, write_file2.f90... Im assuming I need to create a new 'Fortran Application' project in codeblocks.
Is this possible? Because from what I've seen, I'm only able to calculate values in the module, and then process them in the main program... Or am I being silly?
Help would be muchly appreciated.
Cheers
Basically I have been writing extremely long programs to write a series of packages (ascii text files) that are used in a 3rd party software package. I want to be able to do this:
(This is my main program where I assign parameter arrays)
program hello
implicit none
real(kind(0d0)) :: tmpdate
tmpdate = 23.2
print *, 'Hello World! Calling Module'
use hello2
end program hello
I want to call a series of modules to write out the arrays specified in the Main program.... e.g.
module hello2
implicit none
real(kind(0d0)) :: tmpdate
tmpdate = 23.2
write(*,*)tmpdate
end module hello2
The modules will saved as separate f90 files. e.g. write_file1.f90, write_file2.f90... Im assuming I need to create a new 'Fortran Application' project in codeblocks.
Is this possible? Because from what I've seen, I'm only able to calculate values in the module, and then process them in the main program... Or am I being silly?
Help would be muchly appreciated.
Cheers