15 lines
702 B
HTML
15 lines
702 B
HTML
<a href="ex15big.c.html"><h2>Example 15 (64-bit version)</h2></a>
|
|
<p>
|
|
This example is a slight modification of Example 15 that illustrates the 64-bit
|
|
integer support in hypre needed to run problems with more than 2B unknowns.
|
|
<p>
|
|
Specifically, the changes compared to Example 15 are as follows:
|
|
<ol>
|
|
<li> All integer arguments to HYPRE functions should be declared of type HYPRE_Int.
|
|
<li> Variables of type HYPRE_Int are 64-bit integers, so they should be printed in the %lld format (not %d).
|
|
</ol>
|
|
<p>
|
|
To enable the 64-bit integer support, you need to build hypre with the
|
|
--enable-bigint option of the configure script. We recommend comparing this
|
|
example with <a href="ex15.c.html">Example 15</a>.
|