CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Help: how to use compiled F90 module

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2004, 05:39
Default Help: how to use compiled F90 module
  #1
QU KUN
Guest
 
Posts: n/a
I wrote a F90 module and compile it into a lib. And I want use this lib rather than the source file in another F90 main program.

I added a USE statement in the main program. But compling failed.

What shall I do ??
  Reply With Quote

Old   January 27, 2004, 06:01
Default Re: Help: how to use compiled F90 module
  #2
cfd student
Guest
 
Posts: n/a
hi quain put the file *.lib into where your prorject is, and complie, try it.
  Reply With Quote

Old   January 27, 2004, 07:12
Default Re: Help: how to use compiled F90 module
  #3
cfd student
Guest
 
Posts: n/a
i forget to tell you first insert lib flie inteo your project
  Reply With Quote

Old   January 27, 2004, 12:42
Default Re: Help: how to use compiled F90 module
  #4
Peter Attar
Guest
 
Posts: n/a
You need to link the library in when you compile. Look at your compiler docs to find the flags for linking(usually -l and -L)
  Reply With Quote

Old   January 27, 2004, 21:35
Default Re: Help: how to use compiled F90 module
  #5
QU KUN
Guest
 
Posts: n/a
Dear cfd student and Peter

thank you very much.

With your help, I have managed to make it.

With pgf90 compiler, I add the option, "-module <module_dir> -lmymodule -L<lib_dir>", to compile it.

  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiphase modeling with population balance module Pirooz Darabi FLUENT 2 April 28, 2015 08:22
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51
Makefile for f90 under unix Jinwon Main CFD Forum 1 September 22, 2007 06:10
Using compiled UDF:s in different Fluent versions S H FLUENT 1 September 12, 2007 04:40
Lamboot trouble r2d2 OpenFOAM Installation 4 October 17, 2005 05:27


All times are GMT -4. The time now is 10:21.