- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello there:
Its there a way i can use the primitive data types included inside a derived type declared on a separated module as arguments in a subroutine on the file that contains the main program?
for example:
module
derived type :: example1
primitive real :: argument 1
main file
subroutine example_1(argument 1)
Normally fortran throws an error saying that the variables are duplicated if u use these as arguments
usually this is not necessary as the derived types declared in the modules are used as global variables and its subparts can be used as public variables but I am in need of knowing this because the person that wants the program made only knows structured programming(Fortran 77)..
Many thanks in advance any help u can write it here or at einar.coutin@gmail.com
Its there a way i can use the primitive data types included inside a derived type declared on a separated module as arguments in a subroutine on the file that contains the main program?
for example:
module
derived type :: example1
primitive real :: argument 1
main file
subroutine example_1(argument 1)
Normally fortran throws an error saying that the variables are duplicated if u use these as arguments
usually this is not necessary as the derived types declared in the modules are used as global variables and its subparts can be used as public variables but I am in need of knowing this because the person that wants the program made only knows structured programming(Fortran 77)..
Many thanks in advance any help u can write it here or at einar.coutin@gmail.com
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't figure out what it is you are trying to do - the term "primitive type" could have many meanings. Could you post a Fortran example of what you want?

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page