androidmelt
Programmer
Hi Everyone.
I'm new here so I'll introduce myself.
I am a new Fortran user and have some experience in programming from the past.
I wanted your help on the following 2 questions:
QUESTION 1)
======================
I am using an ancient Fortran compiler to write the code. Is there a Object oriented style program where it is much easier to write the fortran code - one that allows you to build windows and buttons etc (OOP).
Example: Delphi is the object oriented development program for the PASCAL language. It allows you to make windows and objects etc.
I am looking for something similiar for FORTRAN if it exists?
QUESTION 2)
========================
This question is about calling subroutines from a module.
Suppose I have a program which calls a subroutine from a module. This subroutine calls another subroutine from another module. Is that possible?
example: main program calls subroutine "subB" from the module modB. subB then calls subroutine "subA" from module "modA". Is this possible (as shown below)?
My program keeps giving errors saying that the modules have no public objects declared in the module so nothing can be use associated.
I was instaed thinking of creating a seperate module modVariables with all the variables and then just telling the modules to use the variables from modVariables through the "USE modVariables" statement. Isn't this possible?
Module modA
...
Subroutine subA
End Module modA
Module modB
Uses modA
Implicit None
Subroutine subB
Call Subroutine subA
End Subroutine subB
End Module modB
Program Main
Uses
....
call Subroutine subB
End Program Main
I'm new here so I'll introduce myself.
I am a new Fortran user and have some experience in programming from the past.
I wanted your help on the following 2 questions:
QUESTION 1)
======================
I am using an ancient Fortran compiler to write the code. Is there a Object oriented style program where it is much easier to write the fortran code - one that allows you to build windows and buttons etc (OOP).
Example: Delphi is the object oriented development program for the PASCAL language. It allows you to make windows and objects etc.
I am looking for something similiar for FORTRAN if it exists?
QUESTION 2)
========================
This question is about calling subroutines from a module.
Suppose I have a program which calls a subroutine from a module. This subroutine calls another subroutine from another module. Is that possible?
example: main program calls subroutine "subB" from the module modB. subB then calls subroutine "subA" from module "modA". Is this possible (as shown below)?
My program keeps giving errors saying that the modules have no public objects declared in the module so nothing can be use associated.
I was instaed thinking of creating a seperate module modVariables with all the variables and then just telling the modules to use the variables from modVariables through the "USE modVariables" statement. Isn't this possible?
Module modA
...
Subroutine subA
End Module modA
Module modB
Uses modA
Implicit None
Subroutine subB
Call Subroutine subA
End Subroutine subB
End Module modB
Program Main
Uses
....
call Subroutine subB
End Program Main