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

Compile error in KIVA 3v with gfortran

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 20, 2009, 06:37
Default Compile error in KIVA 3v with gfortran
  #1
New Member
 
Robert C
Join Date: Jun 2009
Location: London, UK
Posts: 16
Rep Power: 16
ottbot is on a distinguished road
I'm trying to build kiva 3v on OS X using gfortran. I had the same code compiling with intel fortran compiler, using XCode so I didn't see compiler options ifort was using.

Anyway, with gfortran I get the follow error I can't seem to find much information on:
Code:
begin.F:51.18:

      call second(tstart)                                               
                 1
Error: 'time' argument of 'second' intrinsic at (1) must be of kind 4
This is repeated several times (for each call of second it seems like). Here's the full output from the compiler.

http://gist.github.com/189768

The second looks like this:
Code:
      subroutine second (tnow)
      real*4 d(2)
      rtnow=etime(d)
      tnow=d(1)+d(2)
      return
      end
Does this indicate a problem the variable in the subroutine, or the variable being passed to it externally? Is there an option I can use to relax this "must be kind 4" requirement?

I'm at a loss of how to proceed, any advice is appreciated!

Last edited by ottbot; October 1, 2009 at 06:31. Reason: fix subroutine second to actual kiva second.F
ottbot is offline   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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51
Compile KIVA in MAC platform FooChern Main CFD Forum 0 August 9, 2005 15:56
PDF - conserved scalar approach in KIVA vega Main CFD Forum 0 July 5, 2005 02:49


All times are GMT -4. The time now is 06:27.