CFD Online Logo CFD Online URL
Home > Forums > CFX

Fortran Compiler in AIX O.S

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 5, 2005, 00:04
Default Fortran Compiler in AIX O.S
Posts: n/a
Hello Everybody, I need a help in linking the user fortran routines to the solver in AIX operating system. What are the changes to be made in the following starting lines of a user fortran program to create a shared library in AIX(IBM) o.S(compiler:xlf)?

#include "cfx5ext.h" dllexport(user_source) SUBROUTINE USER_SOURCE ( & NLOC,NRET,NARG,RET,ARGS,CRESLT,CZ,DZ,IZ,LZ,RZ) ' ' ' ' ' cfx5ext.h file macro seems to include external name only on Windows NT by creating .dll file.What is the macro for AIX operating system and what changes are neccessary to compile the program.

Thanks in Advance Regards Rajan
  Reply With Quote

Old   July 5, 2005, 02:58
Default Re: Fortran Compiler in AIX O.S
Juan Carlos
Posts: n/a
Dear Rajan,

You have not described your problem with your user fortran.. You should have named your fortran source code something like name_I_like.F .. The capital F extension is important for the compiler to understand the #include directives.

Then, run the cfx5mkext command similar to

cfx5mkext name_I_like.F -name library_name_as_in_CCL

This command should have invoked the xlf compiler and created a library named library_name_as_in_CCL.a under the aix directory.

Then just start the cfx5solve command, and you should be on your way..

Have you tried the tutorials involving User Fortran? The HVAC and ValveFSI tutorials come to mind..

Good luck, Juan Carlos
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel Fortran Compiler & Tutorial 17 Young CFX 1 March 30, 2011 01:39
Fortran Compiler and example Young CFX 1 March 22, 2011 23:26
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Fortran compiler Erik CD-adapco 2 November 28, 2008 21:05
Fortran compiler Arnab CD-adapco 5 September 14, 2004 03:59

All times are GMT -4. The time now is 07:16.