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

Makefile for f90 under unix

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 22, 2007, 04:02
Default Makefile for f90 under unix
  #1
Jinwon
Guest
 
Posts: n/a
I am running fortran codes on Linux/UNIX system. On Linux, the intel fortran, ifort is installed. My makefile worked well in that system. To run them on UNIX having f90, I modified the makefile as

---------------------------------------------------------- # 1. Fortran compiler FC = f90 OPTS = -O3

# 2. DEFINE DIRECTIONS SRCDIR = . OBJDIR = . PROG = main

# 5. DEFINE OBJECT FILES OBJS = \

analytic.o \

................

# 6. DEFINE OBJECT FILES DEPENDENCIES SOURCE = ${SRCDIR}/analytic.f90 ${OBJDIR}/analytic.o:$(SOURCE) ${OBJDIR}

${FC} ${OPTS} -c -module ${OBJDIR} $< -o $@ ............... ------------------------------------------------------- It does not work with this message --> don't know how to make /, (bu42).

I am pretty new to run fortran codes on UNIX. Please let me know how to run these codes on UNIX. I did it on Linux having ifort. But i could not run them on UNIX having f90.

  Reply With Quote

 


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
Linux vs commercial Unix for workstations wenp Hardware 6 May 18, 2011 08:46
Background execution on UNIX systems law FLUENT 1 January 3, 2006 10:53
memory problems with a code on unix vince Main CFD Forum 2 November 5, 2002 03:48
compaq tru-64 unix? lgpatil FLUENT 0 October 21, 2002 14:03
Fluent on UNIX or WinNT mike FLUENT 1 May 30, 2001 12:00


All times are GMT -4. The time now is 05:15.