]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence conversion warning in bundled UMFPACK
authorDaniel Arndt <arndtd@ornl.gov>
Sun, 3 May 2020 03:52:43 +0000 (23:52 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Sun, 3 May 2020 03:59:20 +0000 (23:59 -0400)
bundled/umfpack/UMFPACK/Source/umf_grow_front.cc

index 4a05d15a79a8543b664121bd0dfc6ae04f2486dd..890ebc43bf512c6b2477f0a68d5d1d16c5e98a78 100644 (file)
@@ -112,7 +112,7 @@ GLOBAL Int UMF_grow_front
        /* :: frontal matrix size int overflow :: */
        /* the desired front size is bigger than the integer maximum */
        /* compute a such that a*a*s < Int_MAX / sizeof (Entry) */
-       double a = 0.9 * sqrt ((Int_MAX / sizeof (Entry)) / s) ;
+       double a = 0.9 * sqrt (((double) Int_MAX / sizeof (Entry)) / s) ;
        fnr2 = MAX (fnr_min, a * fnr2) ;
        fnc2 = MAX (fnc_min, a * fnc2) ;
        /* the new frontal size is a*r*a*c = a*a*s */

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.