mld2p4-2:

examples/fileread/mld_cexample_1lev.f90
 examples/fileread/mld_cexample_ml.f90
 examples/fileread/mld_dexample_1lev.f90
 examples/fileread/mld_dexample_ml.f90
 examples/fileread/mld_sexample_1lev.f90
 examples/fileread/mld_sexample_ml.f90
 examples/fileread/mld_zexample_1lev.f90
 examples/fileread/mld_zexample_ml.f90
 examples/pdegen/mld_dexample_1lev.f90
 examples/pdegen/mld_dexample_ml.f90
 examples/pdegen/mld_sexample_1lev.f90
 examples/pdegen/mld_sexample_ml.f90
 mlprec/mld_c_prec_type.f90
 mlprec/mld_d_prec_type.f90
 mlprec/mld_s_prec_type.f90
 mlprec/mld_z_prec_type.f90
 tests/fileread/cf_sample.f90
 tests/fileread/df_sample.f90
 tests/fileread/sf_sample.f90
 tests/fileread/zf_sample.f90
 tests/pdegen/ppde.f90
 tests/pdegen/spde.f90



Made prec_sizeof into a method of prec.
Aligned test programs.
stopcriterion
Salvatore Filippone 13 years ago
parent 21db81b817
commit 978019add3

@ -241,9 +241,9 @@ program mld_cexample_ml
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -278,9 +278,9 @@ program mld_cexample_ml
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -240,9 +240,9 @@ program mld_dexample_ml
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -277,9 +277,9 @@ program mld_dexample_ml
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -241,9 +241,9 @@ program mld_sexample_ml
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -278,9 +278,9 @@ program mld_sexample_ml
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -240,9 +240,9 @@ program mld_zexample_ml
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -277,9 +277,9 @@ program mld_zexample_ml
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -193,9 +193,9 @@ program mld_dexample_1lev
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -229,9 +229,9 @@ program mld_dexample_ml
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -194,9 +194,9 @@ program mld_sexample_1lev
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -230,9 +230,9 @@ program mld_sexample_ml
call psb_genrm2s(resmx,r,desc_A,info) call psb_genrm2s(resmx,r,desc_A,info)
call psb_geamaxs(resmxp,r,desc_A,info) call psb_geamaxs(resmxp,r,desc_A,info)
amatsize = psb_sizeof(A) amatsize = a%sizeof()
descsize = psb_sizeof(desc_A) descsize = desc_a%sizeof()
precsize = mld_sizeof(P) precsize = p%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -92,6 +92,7 @@ module mld_c_prec_type
procedure, pass(prec) :: get_complexity => mld_c_get_compl procedure, pass(prec) :: get_complexity => mld_c_get_compl
procedure, pass(prec) :: cmp_complexity => mld_c_cmp_compl procedure, pass(prec) :: cmp_complexity => mld_c_cmp_compl
procedure, pass(prec) :: get_nzeros => mld_c_get_nzeros procedure, pass(prec) :: get_nzeros => mld_c_get_nzeros
procedure, pass(prec) :: sizeof => mld_cprec_sizeof
end type mld_cprec_type end type mld_cprec_type
private :: mld_c_dump, mld_c_get_compl, mld_c_cmp_compl,& private :: mld_c_dump, mld_c_get_compl, mld_c_cmp_compl,&
@ -178,7 +179,7 @@ contains
function mld_cprec_sizeof(prec) result(val) function mld_cprec_sizeof(prec) result(val)
implicit none implicit none
type(mld_cprec_type), intent(in) :: prec class(mld_cprec_type), intent(in) :: prec
integer(psb_long_int_k_) :: val integer(psb_long_int_k_) :: val
integer :: i integer :: i
val = 0 val = 0

@ -92,6 +92,7 @@ module mld_d_prec_type
procedure, pass(prec) :: get_complexity => mld_d_get_compl procedure, pass(prec) :: get_complexity => mld_d_get_compl
procedure, pass(prec) :: cmp_complexity => mld_d_cmp_compl procedure, pass(prec) :: cmp_complexity => mld_d_cmp_compl
procedure, pass(prec) :: get_nzeros => mld_d_get_nzeros procedure, pass(prec) :: get_nzeros => mld_d_get_nzeros
procedure, pass(prec) :: sizeof => mld_dprec_sizeof
end type mld_dprec_type end type mld_dprec_type
private :: mld_d_dump, mld_d_get_compl, mld_d_cmp_compl,& private :: mld_d_dump, mld_d_get_compl, mld_d_cmp_compl,&
@ -178,7 +179,7 @@ contains
function mld_dprec_sizeof(prec) result(val) function mld_dprec_sizeof(prec) result(val)
implicit none implicit none
type(mld_dprec_type), intent(in) :: prec class(mld_dprec_type), intent(in) :: prec
integer(psb_long_int_k_) :: val integer(psb_long_int_k_) :: val
integer :: i integer :: i
val = 0 val = 0

@ -92,6 +92,7 @@ module mld_s_prec_type
procedure, pass(prec) :: get_complexity => mld_s_get_compl procedure, pass(prec) :: get_complexity => mld_s_get_compl
procedure, pass(prec) :: cmp_complexity => mld_s_cmp_compl procedure, pass(prec) :: cmp_complexity => mld_s_cmp_compl
procedure, pass(prec) :: get_nzeros => mld_s_get_nzeros procedure, pass(prec) :: get_nzeros => mld_s_get_nzeros
procedure, pass(prec) :: sizeof => mld_sprec_sizeof
end type mld_sprec_type end type mld_sprec_type
private :: mld_s_dump, mld_s_get_compl, mld_s_cmp_compl,& private :: mld_s_dump, mld_s_get_compl, mld_s_cmp_compl,&
@ -178,7 +179,7 @@ contains
function mld_sprec_sizeof(prec) result(val) function mld_sprec_sizeof(prec) result(val)
implicit none implicit none
type(mld_sprec_type), intent(in) :: prec class(mld_sprec_type), intent(in) :: prec
integer(psb_long_int_k_) :: val integer(psb_long_int_k_) :: val
integer :: i integer :: i
val = 0 val = 0

@ -92,6 +92,7 @@ module mld_z_prec_type
procedure, pass(prec) :: get_complexity => mld_z_get_compl procedure, pass(prec) :: get_complexity => mld_z_get_compl
procedure, pass(prec) :: cmp_complexity => mld_z_cmp_compl procedure, pass(prec) :: cmp_complexity => mld_z_cmp_compl
procedure, pass(prec) :: get_nzeros => mld_z_get_nzeros procedure, pass(prec) :: get_nzeros => mld_z_get_nzeros
procedure, pass(prec) :: sizeof => mld_zprec_sizeof
end type mld_zprec_type end type mld_zprec_type
private :: mld_z_dump, mld_z_get_compl, mld_z_cmp_compl,& private :: mld_z_dump, mld_z_get_compl, mld_z_cmp_compl,&
@ -178,7 +179,7 @@ contains
function mld_zprec_sizeof(prec) result(val) function mld_zprec_sizeof(prec) result(val)
implicit none implicit none
type(mld_zprec_type), intent(in) :: prec class(mld_zprec_type), intent(in) :: prec
integer(psb_long_int_k_) :: val integer(psb_long_int_k_) :: val
integer :: i integer :: i
val = 0 val = 0

@ -317,7 +317,7 @@ program cf_sample
amatsize = a%sizeof() amatsize = a%sizeof()
descsize = desc_a%sizeof() descsize = desc_a%sizeof()
precsize = mld_sizeof(prec) precsize = prec%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -321,7 +321,7 @@ program df_sample
amatsize = a%sizeof() amatsize = a%sizeof()
descsize = desc_a%sizeof() descsize = desc_a%sizeof()
precsize = mld_sizeof(prec) precsize = prec%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -317,7 +317,7 @@ program sf_sample
amatsize = a%sizeof() amatsize = a%sizeof()
descsize = desc_a%sizeof() descsize = desc_a%sizeof()
precsize = mld_sizeof(prec) precsize = prec%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -317,7 +317,7 @@ program zf_sample
amatsize = a%sizeof() amatsize = a%sizeof()
descsize = desc_a%sizeof() descsize = desc_a%sizeof()
precsize = mld_sizeof(prec) precsize = prec%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -260,7 +260,7 @@ program ppde
amatsize = a%sizeof() amatsize = a%sizeof()
descsize = desc_a%sizeof() descsize = desc_a%sizeof()
precsize = mld_sizeof(prec) precsize = prec%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

@ -258,9 +258,9 @@ program spde
t2 = psb_wtime() - t1 t2 = psb_wtime() - t1
call psb_amx(ictxt,t2) call psb_amx(ictxt,t2)
amatsize = psb_sizeof(a) amatsize = a%sizeof()
descsize = desc_a%sizeof() descsize = desc_a%sizeof()
precsize = mld_sizeof(prec) precsize = prec%sizeof()
call psb_sum(ictxt,amatsize) call psb_sum(ictxt,amatsize)
call psb_sum(ictxt,descsize) call psb_sum(ictxt,descsize)
call psb_sum(ictxt,precsize) call psb_sum(ictxt,precsize)

Loading…
Cancel
Save