#9 datatype dpc missing

open
nobody
None
5
2011-09-06
2011-09-06
Lawrence Selvy
No

I have compiled the libraries in openSUSE 11.4 using the gfortran. Everything compiled ok. Tried compiling your testbench and it complains that the dpc datatype is not defined.

gfortran -o gnuplot_fortran95_testbench gnuplot_fortran95_testbench.f90 -lfortranposix -lgnuplotfortran
gnuplot_fortran95_testbench.f90:25.37:

use datatypes, only : i4b,dp,dpc,lgc
1
Error: Symbol 'dpc' referenced at (1) not found in module 'datatypes'
gnuplot_fortran95_testbench.f90:37.19:

complex(dpc), dimension(:), allocatable :: cp
1
Error: Symbol 'dpc' at (1) has no IMPLICIT type
gnuplot_fortran95_testbench.f90:74.17:

allocate(cp(numpoints), stat=status)
1
Error: Allocate-object at (1) is not a nonprocedure pointer or an allocatable variable
gnuplot_fortran95_testbench.f90:92.47:

cp(i)=cmplx(cos(x(i)),sin(x(i)),dpc)
1
Error: Unexpected STATEMENT FUNCTION statement at (1)
gnuplot_fortran95_testbench.f90:140.125:

x,y1,'sin(x)',y2=y2,y2title='cos(x)',y3=y3,y3title='atan(x)',y4=y4,y4title='sqr
1
Error: Unterminated character constant beginning at (1)
gnuplot_fortran95_testbench.f90:311.37:

deallocate(x,y,y1,y2,y3,y4,cp,z1,z2,z3,z4)
1
Error: Allocate-object at (1) is not a nonprocedure pointer or an allocatable variable
gnuplot_fortran95_testbench.f90:198.57:

status=gnuplot_plotcomplex(ptr_gctrl,numpoints,cp,'A circle ?')
1
Error: Symbol 'cp' at (1) has no IMPLICIT type

The datatype.mod is attached.

Discussion

  • Lawrence Selvy
    Lawrence Selvy
    2011-09-06

    datatype.mod

     
    Attachments