replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - ASSEMBLY_INTERFACE generated subroutines & input names
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ASSEMBLY_INTERFACE generated subroutines & input names

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
ebarbero



Joined: 01 Aug 2012
Posts: 20

PostPosted: Wed Aug 01, 2012 10:41 pm    Post subject: ASSEMBLY_INTERFACE generated subroutines & input names Reply with quote

When I try to use in C# a Fortran subroutine I have two options:

Use the all caps subroutine or the subroutine defined by the assembly_interface statement.

The all caps subroutine has the problem that If there is a matrix as input or output I have to pass the size information.

The subroutine defined by the assembly_interface statement loses the input names!

Example:



Matrices subroutine (just an example)
Code:

subroutine Matrices(f, A)
implicit none
ASSEMBLY_INTERFACE(Name='Matrices')

double precision, intent(in) :: f
double precision, intent(out):: A(:,:)

A      = 0.d0
A(1,1) = f
A(1,2) = f**2.d0

endsubroutine

_________________
http://www.cadec-online.com/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group