mirror of
https://github.com/sfilippone/amg4psblas.git
synced 2026-10-20 12:52:16 +00:00
Avoid integer overflow when computing nnz.
This commit is contained in:
@@ -247,8 +247,8 @@ contains
|
||||
|
||||
m = idim*idim
|
||||
n = m
|
||||
nnz = ((n*7)/(np))
|
||||
if(iam == psb_root_) write(psb_out_unit,'("Generating Matrix (size=",i0,")...")')n
|
||||
nnz = 7*((n+np-1)/np)
|
||||
if (iam == psb_root_) write(psb_out_unit,'("Generating Matrix (size=",i0,")...")')n
|
||||
t0 = psb_wtime()
|
||||
select case(partition_)
|
||||
case(1)
|
||||
|
||||
@@ -263,7 +263,7 @@ contains
|
||||
|
||||
m = idim*idim*idim
|
||||
n = m
|
||||
nnz = ((n*7)/(np))
|
||||
nnz = 7*((n+np-1)/np)
|
||||
if(iam == psb_root_) write(psb_out_unit,'("Generating Matrix (size=",i0,")...")')n
|
||||
t0 = psb_wtime()
|
||||
select case(partition_)
|
||||
|
||||
@@ -247,8 +247,8 @@ contains
|
||||
|
||||
m = idim*idim
|
||||
n = m
|
||||
nnz = ((n*7)/(np))
|
||||
if(iam == psb_root_) write(psb_out_unit,'("Generating Matrix (size=",i0,")...")')n
|
||||
nnz = 7*((n+np-1)/np)
|
||||
if (iam == psb_root_) write(psb_out_unit,'("Generating Matrix (size=",i0,")...")')n
|
||||
t0 = psb_wtime()
|
||||
select case(partition_)
|
||||
case(1)
|
||||
|
||||
@@ -263,7 +263,7 @@ contains
|
||||
|
||||
m = idim*idim*idim
|
||||
n = m
|
||||
nnz = ((n*7)/(np))
|
||||
nnz = 7*((n+np-1)/np)
|
||||
if(iam == psb_root_) write(psb_out_unit,'("Generating Matrix (size=",i0,")...")')n
|
||||
t0 = psb_wtime()
|
||||
select case(partition_)
|
||||
|
||||
Reference in New Issue
Block a user