summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Mollier <etienne.mollier@mailoo.org>2021-02-03 16:37:21 +0100
committerÉtienne Mollier <etienne.mollier@mailoo.org>2021-02-03 16:37:21 +0100
commitbdef27fbb2abb646f922d48056255dfc4f39799b (patch)
tree01c36dadce42dbf982aa656861c6c37816335eee
parentd069cb0dff1bdd78f91784c6cd45aa815eaca81b (diff)
fix ftbfs with gcc-10
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957828 Forwarded: saad *at* cs *dot* umn *dot* edu Last-Update: 2021-02-02 This fixes the argument type mismatch in the csrcsc call by introducing the one dimension vector iziama of type real(8), instead of an integer(4) scalar, while trying to maintain compatibility with Fortran 77. Last-Update: 2021-02-02 Gbp-Pq: Name gcc-10.patch
-rw-r--r--ORDERINGS/ccn.f8
1 files changed, 5 insertions, 3 deletions
diff --git a/ORDERINGS/ccn.f b/ORDERINGS/ccn.f
index eee5836..037cfa9 100644
--- a/ORDERINGS/ccn.f
+++ b/ORDERINGS/ccn.f
@@ -90,7 +90,7 @@ C Laura C. Dutto - email: dutto@cerca.umontreal.ca
c July 1992 - Update: March 1994
C-----------------------------------------------------------------------
integer izs(nw), lpw(n), nsbloc(0:nblcmx), ia(n+1), ja(*)
- real*8 amat(*)
+ real*8 amat(*), iziama(1)
logical impr
character*6 chsubr
C-----------------------------------------------------------------------
@@ -147,10 +147,12 @@ c..........We copy IA and JA on IAT and JAT respectively
* ja, ia, izs(ilpw), izs(ilpw), job)
ipos = 1
c..........We sort columns inside JA.
- call csrcsc(n, job, ipos, amat, ja, ia, izs(iamat),
+ iziama(1) = izs(iamat)
+ call csrcsc(n, job, ipos, amat, ja, ia, iziama,
* izs(ijat), izs(iiat))
- call csrcsc(n, job, ipos, izs(iamat), izs(ijat), izs(iiat),
+ call csrcsc(n, job, ipos, iziama, izs(ijat), izs(iiat),
* amat, ja, ia)
+ izs(iamat) = iziama(1)
endif
c.....We modify the ordering of unknowns in LPW
call compos(n, lpw, izs(ilpw))