CalvinNeo / CFortranTranslator

A translator from Fortran to C++. We provide statement-wise translation to improve readability.
GNU General Public License v2.0
120 stars 26 forks source link

Blas Errors #2

Closed trmcnealy closed 4 years ago

trmcnealy commented 4 years ago
CFortranTranslator.exe -Ff daxpy.f > axpy.cpp

Error : syntax error, unexpected '*'
(line 2:0, index = 1, len = 1), current token is  META_ANY (id = -308) : "*"
*> \brief \b DAXPY\n*\n
^$

Fatal : Syntex error.
*> \brief \b DAXPY
*
*  =========== DOCUMENTATION ===========
*
* Online html documentation available at
*            http://www.netlib.org/lapack/explore-html/
*
*  Definition:
*  ===========
R:\>CFortranTranslator.exe -Ff daxpy.f > axpy.cpp

Error : syntax error, unexpected '*'
(line 103:10, index = 2321, len = 1), current token is  META_ANY (id = -308) : "*"
DOUBLE PRECISION DX(*),DY(*)\nC     ..\nC\nC
                   ^$
Cost time:8
*  =====================================================================
      SUBROUTINE DAXPY(N,DA,DX,INCX,DY,INCY)
*
*  -- Reference BLAS level1 routine (version 3.8.0) --
*  -- Reference BLAS is a software package provided by Univ. of Tennessee,    --
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
*     November 2017
*
*     .. Scalar Arguments ..
      DOUBLE PRECISION DA
      INTEGER INCX,INCY,N
*     ..
*     .. Array Arguments ..
      DOUBLE PRECISION DX(*),DY(*)
*     ..
*
*  =====================================================================
CalvinNeo commented 4 years ago

DOUBLE PRECISION DX(*), we don't support this statement currently. I mean the star inside the parentheses