File: 28_PBtools.h.patch

package info (click to toggle)
scalapack 1.8.0-12
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 32,712 kB
  • ctags: 29,423
  • sloc: fortran: 288,069; ansic: 64,035; makefile: 1,966
file content (13 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: scalapack-1.8.0/PBLAS/SRC/PBtools.h
===================================================================
--- scalapack-1.8.0.orig/PBLAS/SRC/PBtools.h	2006-01-18 22:36:03.000000000 +0100
+++ scalapack-1.8.0/PBLAS/SRC/PBtools.h	2011-09-18 16:37:42.895311494 +0200
@@ -115,7 +115,7 @@
 *  also less silly errors ...
 */
 #define    Mptr( a_, i_, j_, lda_, siz_ ) \
-              ( (a_) + ( ( (i_)+(j_)*(lda_) )*(siz_) ) )
+           ( (a_) + ( (off_t) ( (off_t)(i_)+(off_t)(j_)*(off_t)(lda_))*(off_t)(siz_) ) )
 /*
 *  Mfirstnb and Mlastnb compute the global size of the first and last
 *  block corresponding to the interval i_:i_+n_-1 of global indexes.