Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Derived Types and Modules

einar_coutin
Beginner
412 Views
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
0 Kudos
1 Reply
Steven_L_Intel1
Employee
412 Views
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?
0 Kudos
Reply