Linking F90 routine

From: Soo-Jin Sohn <jeenie7_at_nyahnyahspammersnyahnyah>
Date: Wed, 9 May 2007 11:38:40 +0900

Dear All,

 

I am used to link NCL to Fortran 77 with WRAPIT on a Linux X86_64 bit
machine.

(WRAPIT Version: 090806)

But I have a problem when I try to link NCL to F90 routines.

 

The following are my simple test codes.

 

test90.stub

C NCLFORTSTART

      subroutine test (N)

      INTEGER N

C NCLEND

 

test_l.f90

module test

      interface

      subroutine test (N)

      integer, intent(in) :: N

      end subroutine

      end interface

      end module

 

test.f90

subroutine test (N)

      implicit none

      integer, intent(in) :: N

      print *, N

      return

      end subroutine test

 

When I compile these codes with WRAPIT, I got an error:

 

% WRAPIT test90.stub test_l.f90 test.f90

 

WRAPIT Version: 090806

/usr/bin/g77

COMPILING test_l.f90

FATAL ERROR: g77 can not compile f90 code

 

Thank you.

Soo-Jin Sohn

 

 

===================================

 

Soo-Jin Sohn

 

Climate Model Specialist

APCC(APEC Climate Center)

National Pension Corporation Busan Bldg.

Yeonsan 2(i)-dong, Yeonje-gu

Busan, 611-705, Republic of Korea

Tel.: +82-51-668-7471,2

Fax: +82-51-668-7473

Mobile: +82-16-751-8361

e-mail: jeenie7_at_apcc21.net

 

====================================

 

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue May 08 2007 - 20:38:40 MDT

This archive was generated by hypermail 2.2.0 : Thu May 10 2007 - 09:24:01 MDT