more careful check if values are matrices

* lisp/ob-fortran.el (org-babel-fortran-var-to-fortran): More careful
  check if values are matrices.
This commit is contained in:
Eric Schulte 2013-06-06 10:16:01 -06:00
parent 29e2853870
commit 0508d22bac
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ of the same value."
(format "character(len=%d), parameter :: %S = '%s'\n"
(length val) var val))
;; val is a matrix
((and (listp val) (listp (car val)))
((and (listp val) (org-every #'listp val))
(format "real, parameter :: %S(%d,%d) = transpose( reshape( %s , (/ %d, %d /) ) )\n"
var (length val) (length (car val))
(org-babel-fortran-transform-list val)