FORTRAN Block in XCOS

classic Classic list List threaded Threaded
10 messages Options
planetcooler planetcooler
Reply | Threaded
Open this post in threaded view
|

FORTRAN Block in XCOS

Can anyone point me at an example of an XCOS FORTRAN Block please ?
Clément David-3 Clément David-3
Reply | Threaded
Open this post in threaded view
|

Re: FORTRAN Block in XCOS

Hello,

You could take a look at inside Scilab source code ; the source code for fortran blocks are located
in http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab/modules/scicos_blocks/src/fortran .

Thanks,

--
Clément

Le vendredi 19 mai 2017 à 01:29 -0700, planetcooler a écrit :

> Can anyone point me at an example of an XCOS FORTRAN Block please ?
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
planetcooler planetcooler
Reply | Threaded
Open this post in threaded view
|

Re: FORTRAN Block in XCOS

Clément 

Thank you for this - much appreciated. 

Sorry - two questions: 

Where are the parameters in the Subroutine Call defined / explained ?

ie - each subroutine call appears to have the format:

subroutine XXXX (flag,nevprt,t,xd,x,nx,z,nz,tvec,ntvec,
     &     rpar,nrpar,ipar,nipar,u,nu,y,ny)
….where are the definitions of iflag, nevprt, t, xd etc……….?


and

If I compile my Subroutine -  how does it get used / called by XCOS ? Do I make a dll ? Put it in a library ? 


Sorry to  bother you with this - but I am guessing that there is a document somewhere that explains all of this? 

Regards and many thanks……………... 

Robin 



On 19 May 2017, at 11:05, Clément David-3 [via Scilab / Xcos - Mailing Lists Archives] <[hidden email]> wrote:

Hello,

You could take a look at inside Scilab source code ; the source code for fortran blocks are located
in http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab/modules/scicos_blocks/src/fortran .

Thanks,

--
Clément

Le vendredi 19 mai 2017 à 01:29 -0700, planetcooler a écrit :

> Can anyone point me at an example of an XCOS FORTRAN Block please ?
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> <a href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=4036423&amp;i=0" target="_top" rel="nofollow" link="external" class=""> [hidden email]
> http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
<a href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=4036423&amp;i=1" target="_top" rel="nofollow" link="external" class="">[hidden email]
http://lists.scilab.org/mailman/listinfo/users



If you reply to this email, your message will be added to the discussion below:
http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036423.html
To unsubscribe from FORTRAN Block in XCOS, click here.
NAML

planetcooler planetcooler
Reply | Threaded
Open this post in threaded view
|

Re: FORTRAN Block in XCOS

ok - not many FORTRAN folk out there using XCOS I guess.

 Does anyone have an example using C, perhaps or another language?
planetcooler planetcooler
Reply | Threaded
Open this post in threaded view
|

Re: FORTRAN Block in XCOS

Is there a Developer's Guide somewhere - for folk who want to develop new blocks?

Perrichon Pierre Perrichon Pierre
Reply | Threaded
Open this post in threaded view
|

Re: FORTRAN Block in XCOS

Dear,

I'm also interest to translate Fortran to C.
It's a big task looking at MGO and science to translate done by the olders

Good luck



Before printing, think about ENVIRONMENTAL responsabity

-----Message d'origine-----
De : users [mailto:[hidden email]] De la part de
planetcooler
Envoyé : lundi 22 mai 2017 22:25
À : [hidden email]
Objet : Re: [Scilab-users] FORTRAN Block in XCOS

Is there a Developer's Guide somewhere - for folk who want to develop new
blocks?





--
View this message in context:
http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036441.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Clément David-3 Clément David-3
Reply | Threaded
Open this post in threaded view
|

Re: FORTRAN Block in XCOS

In reply to this post by planetcooler
Hello,

There is some documents listed in the Scilab website [1] however there is no dedicated documentation
for creating a block. There is some books [2] on Scilab/Xcos which also cover the subject however
the most up to date books are in French.

[1]: http://www.scilab.org/resources/documentation/tutorials
[2]: http://www.scilab.org/resources/documentation/books

Thanks

--
Clément


Le lundi 22 mai 2017 à 13:25 -0700, planetcooler a écrit :

> Is there a Developer's Guide somewhere - for folk who want to develop new
> blocks? 
>
>
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p40364
> 41.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
planetcooler planetcooler
Reply | Threaded
Open this post in threaded view
|

Re: FORTRAN Block in XCOS

Thank you. 

(Might have to try my very rusty French !) 

Robin


On 23 May 2017, at 09:16, Clément David-3 [via Scilab / Xcos - Mailing Lists Archives] <[hidden email]> wrote:

Hello,

There is some documents listed in the Scilab website [1] however there is no dedicated documentation
for creating a block. There is some books [2] on Scilab/Xcos which also cover the subject however
the most up to date books are in French.

[1]: http://www.scilab.org/resources/documentation/tutorials
[2]: http://www.scilab.org/resources/documentation/books

Thanks

--
Clément


Le lundi 22 mai 2017 à 13:25 -0700, planetcooler a écrit :

> Is there a Developer's Guide somewhere - for folk who want to develop new
> blocks? 
>
>
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p40364
> 41.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> <a href="x-msg://142/user/SendEmail.jtp?type=node&amp;node=4036443&amp;i=0" target="_top" rel="nofollow" link="external" class=""> [hidden email]
> http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
<a href="x-msg://142/user/SendEmail.jtp?type=node&amp;node=4036443&amp;i=1" target="_top" rel="nofollow" link="external" class="">[hidden email]
http://lists.scilab.org/mailman/listinfo/users



If you reply to this email, your message will be added to the discussion below:
http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036443.html
To unsubscribe from FORTRAN Block in XCOS, click here.
NAML

planetcooler planetcooler
Reply | Threaded
Open this post in threaded view
|

Re: FORTRAN Block in XCOS

In reply to this post by Clément David-3
I still find it surprising that  I cannot find a document that describes these calling / return parameters in a XCOS Fortran Block:

subroutine evtdly(flag,nevprt,t,xd,x,nx,z,nz,tvec,ntvec,
     &     rpar,nrpar,ipar,nipar,u,nu,y,ny)

Is there some way to get this question to the SciLab people ?

Someone must know !!!!!

Sorry to post this here again.

Thanks readers........
planetcooler planetcooler
Reply | Threaded
Open this post in threaded view
|

Re: FORTRAN Block in XCOS

ok - so I bit the bullet and wrote a one line XCOS FORTRAN Block -  (robfor.f) using the XCOS template

and this happened :

Startup execution:
  loading initial environment
   Generate a loader file
   Generate a Makefile
   ilib_gen_Make: configure : Generate Makefile.
   ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR
   ilib_gen_Make: Copy robfor.f to TMPDIR
   ilib_gen_Make: configure : Generate Makefile.
   ilib_gen_Make: Modification of the Makefile in TMPDIR.
   Running the Makefile

!sorry compiling problem                                                   !
!                                                                          !
!ilib_compile: An error occurred during the compilation:                   !
!                                                                          !
!libtool: compile: unrecognized option `-I/Applications/scilab-6.0.0.app/Co!
!ntents/MacOS/share/scilab/../../include/scilab/'                          !
!                                                                          !
!libtool: compile: Try `libtool --help' for more information.              !
!                                                                          !
!make: *** [robfor.lo] Error 1                                             !
!                                                                          !
!ilib_compile: The command was:                                            !
!                                                                          !
!make  CFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-6.0.0.app/Conte!
!nts/MacOS/share/scilab/../../include/scilab/ -I/Applications/scilab-6.0.0.!
!app/Contents/MacOS/share/scilab/../../include/  -I/Applications/scilab-6.0!
!.0.app/Contents/MacOS/share/scilab/modules/scicos/includes/ -I/Application!
!s/scilab-6.0.0.app/Contents/MacOS/share/scilab/modules/scicos_blocks/inclu!
!des/ -I/Applications/scilab-6.0.0.app/Contents/MacOS/share/scilab/modules/!
!dynamic_link/includes/" CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/sc!
!ilab-6.0.0.app/Contents/MacOS/share/scilab/../../include/scilab/ -I/Applic!
!ations/scilab-6.0.0.app/Contents/MacOS/share/scilab/../../include/  -I/App!
!lications/scilab-6.0.0.app/Contents/MacOS/share/scilab/modules/scicos/incl!
!udes/ -I/Applications/scilab-6.0.0.app/Contents/MacOS/share/scilab/modules!
!/scicos_blocks/includes/ -I/Applications/scilab-6.0.0.app/Contents/MacOS/s!
!hare/scilab/modules/dynamic_link/includes/" FFLAGS="-I/Applications/scilab!
!-6.0.0.app/Contents/MacOS/share/scilab/../../include/scilab/ "


Anyone the wiser ?

Where do I find an explanation of Error 1 ?

Where does Scilab / XCOS expect to find a FORTRAN compiler ?