File: g%2B%2B10-fix.patch

package info (click to toggle)
python-escript 5.6-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 144,304 kB
  • sloc: python: 592,074; cpp: 136,909; ansic: 18,675; javascript: 9,411; xml: 3,384; sh: 738; makefile: 207
file content (18 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix Type declaration error that causes FTFBS with g++-10
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2020-12-09
Forwarded: no

Index: python-escript-5.6/paso/src/SystemMatrix_copyRemoteCoupleBlock.cpp
===================================================================
--- python-escript-5.6.orig/paso/src/SystemMatrix_copyRemoteCoupleBlock.cpp
+++ python-escript-5.6/paso/src/SystemMatrix_copyRemoteCoupleBlock.cpp
@@ -265,7 +265,7 @@ void SystemMatrix<double>::copyRemoteCou
     // allocate pattern and sparse matrix for remote_coupleBlock
     Pattern_ptr pattern(new Pattern(row_coupleBlock->pattern->type,
                         overlapped_n, num_couple_cols, ptr_ptr, ptr_idx));
-    remote_coupleBlock.reset(new SparseMatrix(row_coupleBlock->type,
+    remote_coupleBlock.reset(new SparseMatrix<double>(row_coupleBlock->type,
                              pattern, row_block_size, col_block_size, false));
 
     // send/receive value array