CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   tutorial 17 (https://www.cfd-online.com/Forums/cfx/64727-tutorial-17-a.html)

painterwolf May 21, 2009 10:26

tutorial 17
 
I'm studying tutorial 17 because I need fortran subroutine for another project. I have problem with theese steps:
  1. Type the following command in the Command Editor dialog box (make sure you do not miss the semi-colon at the end of the line):
  2. ! system (“cfx5mkext TStat_Control.F”) < 1 or die “cfx5mkext failed”;
    1. This is equivalent to executing the following at an OS command prompt:
    cfx5mkext TStat_Control.F
  • The ! indicates that the following line is to be interpreted as power syntax and not CCL. Everything after the ! symbol is processed as Perl commands.
  • system is a Perl function to execute a system command.
  • The < 1 or die will cause an error message to be returned if, for some reason, there is an error in processing the command.
  1. Click Process to compile the subroutine.
    Note

    You can use the -double option (i.e., cfx5mkext -double TStat_Control.F) to compile the subroutine for use with double precision ANSYS CFX-Solver executables.
A subdirectory will have been created in your working directory whose name is system dependent (e.g., on IRIX it is named irix). This sub directory contains the shared object library.

The problem is A subdirectory NO will have been created in your working directory

Which error I'm committing?

Martijn May 21, 2009 13:28

I don't understand your problem. Could you be any more specific?
What happens when you process
!system (“cfx5mkext TStat_Control.F”) < 1 or die; ?

painterwolf May 21, 2009 13:34

NOTHING!! The subdirectory should be created there isn't in my working directory

Martijn May 21, 2009 13:38

Does it give an output in the command window?
Did you install a fortran compiler on your system?

painterwolf May 22, 2009 03:26

In my sistem I installed visual studio 2008 and after I installed visual fortran compiler 11.0.072.
When I launch !system (“cfx5mkext TStat_Control.F”) < 1 or die;
I read:

Use of uninitialized value in pattern match (m//) at (eval50) line 1.

And if I reply command I read:

Use of uninitialized value in pattern match (m//) at (eval51) line 1.

and after

Use of uninitialized value in pattern match (m//) at (eval52) line 1.

etc etc

Martijn May 22, 2009 06:00

Only some compilers are known to work in combination with CFX. These should work (maybe a few more, not sure though): Intel fortran compiler 9.0, 9.1, 10 and 10.1, Compaq visual fortran 6.6(?).

I guess thats your problem.

painterwolf May 22, 2009 06:10

Where I can find a trial version for one of theese FORTRAN versions?

painterwolf May 29, 2009 18:22

Is there someone can show me I can run tutorial 17? The command cfx5mkext d0n't work.

rogbrito July 14, 2009 22:11

Files of this Tutorial:

http://www.4shared.com/file/72198900...tionpart1.html

http://www.4shared.com/file/72199871...tionpart2.html


Quote:

Originally Posted by painterwolf (Post 216844)
I'm studying tutorial 17 because I need fortran subroutine for another project. I have problem with theese steps:
  1. Type the following command in the Command Editor dialog box (make sure you do not miss the semi-colon at the end of the line):
  2. ! system (“cfx5mkext TStat_Control.F”) < 1 or die “cfx5mkext failed”;
    1. This is equivalent to executing the following at an OS command prompt:
    cfx5mkext TStat_Control.F
  • The ! indicates that the following line is to be interpreted as power syntax and not CCL. Everything after the ! symbol is processed as Perl commands.
  • system is a Perl function to execute a system command.
  • The < 1 or die will cause an error message to be returned if, for some reason, there is an error in processing the command.
  1. Click Process to compile the subroutine.
    Note

    You can use the -double option (i.e., cfx5mkext -double TStat_Control.F) to compile the subroutine for use with double precision ANSYS CFX-Solver executables.
A subdirectory will have been created in your working directory whose name is system dependent (e.g., on IRIX it is named irix). This sub directory contains the shared object library.

The problem is A subdirectory NO will have been created in your working directory

Which error I'm committing?



All times are GMT -4. The time now is 08:26.