Avoid integer overflow when computing nnz.

stopcriterion
Salvatore Filippone 6 years ago
parent a0343aa36a
commit 331e57ed35

@ -247,7 +247,7 @@ contains
m = idim*idim m = idim*idim
n = m 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 if (iam == psb_root_) write(psb_out_unit,'("Generating Matrix (size=",i0,")...")')n
t0 = psb_wtime() t0 = psb_wtime()
select case(partition_) select case(partition_)

@ -263,7 +263,7 @@ contains
m = idim*idim*idim m = idim*idim*idim
n = m 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 if(iam == psb_root_) write(psb_out_unit,'("Generating Matrix (size=",i0,")...")')n
t0 = psb_wtime() t0 = psb_wtime()
select case(partition_) select case(partition_)

@ -247,7 +247,7 @@ contains
m = idim*idim m = idim*idim
n = m 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 if (iam == psb_root_) write(psb_out_unit,'("Generating Matrix (size=",i0,")...")')n
t0 = psb_wtime() t0 = psb_wtime()
select case(partition_) select case(partition_)

@ -263,7 +263,7 @@ contains
m = idim*idim*idim m = idim*idim*idim
n = m 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 if(iam == psb_root_) write(psb_out_unit,'("Generating Matrix (size=",i0,")...")')n
t0 = psb_wtime() t0 = psb_wtime()
select case(partition_) select case(partition_)

Loading…
Cancel
Save