gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1617 Posts in 535 Topics by 779 Members - Latest Member: rhoronjeff@comcast.net November 27, 2022, 08:05:31 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  Windows  |  PASSING VARIABLES FROM THE MRWE TO FORTRAN APPLICATIONS
gfx
gfxgfx
 

Author Topic: PASSING VARIABLES FROM THE MRWE TO FORTRAN APPLICATIONS  (Read 5997 times)

Frances Rose Bauckham

  • Newbie
  • *
  • Posts: 12
PASSING VARIABLES FROM THE MRWE TO FORTRAN APPLICATIONS
« on: September 20, 2007, 03:42:33 PM »
PASSING VARIABLES FROM THE MRWE TO FORTRAN APPLICATIONS


Just wondering if anyone has experience of passing variables from the MRWE into the applications programs?   The sort of thing we use this is passing "handle values" into our code, so that appropriate pop-up boxes can be displayed, but there are other uses too.


Hitherto, this could simply be done by using a COMMON in both the MRWE and the top-level applications program.   However I have found that with Absoft 10.0 this no longer works.


I have tried using the USE statement (to call a module)in both the MRWE and F77, but likewise  a value of XX in the MRWE is received as 0 in the Fortran (and vice-versa).


Any information will be useful please.

Thank you very much.

Mike Linacre

  • Sr. Member
  • ****
  • Posts: 259
Re: PASSING VARIABLES FROM THE MRWE TO FORTRAN APPLICATIONS
« Reply #1 on: September 21, 2007, 04:50:58 PM »
Perhaps the problem is mismatched INTEGER lengths. Specify all lengths explicitly INTEGER*4 etc., and make sure that everything is on 4-byte boundaries in your COMMON. Easiest way is to put everything that is not 4 bytes or 8 bytes long into a different COMMON.

Absoft User Forum  |  Support  |  Windows  |  PASSING VARIABLES FROM THE MRWE TO FORTRAN APPLICATIONS
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!