Thread Subject: i need help for mex-file

Subject: i need help for mex-file

From: abdelmoumen

Date: 29 Oct, 2009 19:22:03

Message: 1 of 7

hi everybody

i want write a mex-file from the fortran source code of the 4nec2

but there are many fuctions and input/output params

how can i do this?????

thank's at advance

Subject: i need help for mex-file

From: James Tursa

Date: 29 Oct, 2009 21:36:02

Message: 2 of 7

"abdelmoumen " <bmoumen27@yahoo.fr> wrote in message <hccq0r$560$1@fred.mathworks.com>...
> hi everybody
>
> i want write a mex-file from the fortran source code of the 4nec2
>
> but there are many fuctions and input/output params
>
> how can i do this?????
>
> thank's at advance

Where can the source code be found?

James Tursa

Subject: here is the code

From: abdelmoumen

Date: 31 Oct, 2009 12:29:02

Message: 3 of 7

"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <hcd1s2$i5n$1@fred.mathworks.com>...
> Where can the source code be found?
>
> James Tursa

here you can find the code

http://home.ict.nl/~arivoors/Nec2dXS_src.zip

thanks

Subject: here is the code

From: James Tursa

Date: 31 Oct, 2009 17:13:01

Message: 4 of 7

"abdelmoumen " <bmoumen27@yahoo.fr> wrote in message <hchaie$9q3$1@fred.mathworks.com>...
> "James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <hcd1s2$i5n$1@fred.mathworks.com>...
> > Where can the source code be found?
> >
> > James Tursa
>
> here you can find the code
>
> http://home.ict.nl/~arivoors/Nec2dXS_src.zip
>
> thanks

That's 10,000+ lines of sparsely commented F77 code. The TAPEx nomenclature leads me to believe it was possibly written for an old CDC computer. It would probably take an experienced programmer several weeks or months to convert all of the individual functions to mex routines. Is that what you are after?

James Tursa

Subject: here is the code

From: abdelmoumen

Date: 1 Nov, 2009 11:22:03

Message: 5 of 7

"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <hchr6t$lra$1@fred.mathworks.com>...
>
> That's 10,000+ lines of sparsely commented F77 code. The TAPEx nomenclature leads me to believe it was possibly written for an old CDC computer. It would probably take an experienced programmer several weeks or months to convert all of the individual functions to mex routines. Is that what you are after?
>
> James Tursa

the exe app was built with a fortran gcc 95;
i know that there are +10000 lines, and i dont know programming in fortran that's why i find it too difficult for me
i think that the idea to generate a mex-file for each fortran routine is good
is there any special things to split the entire code into many routines?????
thank's

Subject: here is the code

From: Rune Allnor

Date: 1 Nov, 2009 11:47:38

Message: 6 of 7

On 1 Nov, 12:22, "abdelmoumen " <bmoume...@yahoo.fr> wrote:

> i know that there are +10000 lines, and i dont know programming in fortran that's why i find it too difficult for me

Then you have two choises:

1) Pay somebody to do the MEX convcersion for you
2) Ditch the fortran code, and instead re-implement
   the functionality in some language you know.

Rune

Subject: here is the code

From: abdelmoumen

Date: 1 Nov, 2009 19:57:01

Message: 7 of 7

Rune Allnor <allnor@tele.ntnu.no> wrote in message <fac9c920-4325-44fb-b310-062dfe2a4241@j19g2000yqk.googlegroups.com>...
> Then you have two choises:
>
> 1) Pay somebody to do the MEX convcersion for you
> 2) Ditch the fortran code, and instead re-implement
> the functionality in some language you know.
>
> Rune

thank's!!!!!!!!!!!!!!!!

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com