mirror of
https://github.com/sfilippone/amg4psblas.git
synced 2026-10-06 14:44:55 +00:00
Improved error messaging for sample programs. Fix PDE2D
This commit is contained in:
@@ -659,7 +659,9 @@ contains
|
||||
write(psb_err_unit,*) 'Opened file ',trim(filename),' for input'
|
||||
end if
|
||||
else
|
||||
inp_unit=psb_inp_unit
|
||||
write(psb_err_unit,*) 'Usage: amg_cf_sample ctrl-file '
|
||||
call psb_abort(ctxt)
|
||||
stop
|
||||
end if
|
||||
!
|
||||
! input files
|
||||
|
||||
@@ -659,7 +659,9 @@ contains
|
||||
write(psb_err_unit,*) 'Opened file ',trim(filename),' for input'
|
||||
end if
|
||||
else
|
||||
inp_unit=psb_inp_unit
|
||||
write(psb_err_unit,*) 'Usage: amg_df_sample ctrl-file '
|
||||
call psb_abort(ctxt)
|
||||
stop
|
||||
end if
|
||||
!
|
||||
! input files
|
||||
|
||||
@@ -659,7 +659,9 @@ contains
|
||||
write(psb_err_unit,*) 'Opened file ',trim(filename),' for input'
|
||||
end if
|
||||
else
|
||||
inp_unit=psb_inp_unit
|
||||
write(psb_err_unit,*) 'Usage: amg_sf_sample ctrl-file '
|
||||
call psb_abort(ctxt)
|
||||
stop
|
||||
end if
|
||||
!
|
||||
! input files
|
||||
|
||||
@@ -659,7 +659,9 @@ contains
|
||||
write(psb_err_unit,*) 'Opened file ',trim(filename),' for input'
|
||||
end if
|
||||
else
|
||||
inp_unit=psb_inp_unit
|
||||
write(psb_err_unit,*) 'Usage: amg_zf_sample ctrl-file '
|
||||
call psb_abort(ctxt)
|
||||
stop
|
||||
end if
|
||||
!
|
||||
! input files
|
||||
|
||||
@@ -736,7 +736,7 @@ contains
|
||||
npdims = 1
|
||||
#else
|
||||
npp = np
|
||||
call mpi_dims_create(npp,3,npdims,minfo)
|
||||
call mpi_dims_create(npp,2,npdims,minfo)
|
||||
#endif
|
||||
npx = npdims(1)
|
||||
npy = npdims(2)
|
||||
|
||||
@@ -634,7 +634,9 @@ contains
|
||||
write(psb_err_unit,*) 'Opened file ',trim(filename),' for input'
|
||||
end if
|
||||
else
|
||||
inp_unit=psb_inp_unit
|
||||
write(psb_err_unit,*) 'Usage: amg_d_pde2d ctrl-file '
|
||||
call psb_abort(ctxt)
|
||||
stop
|
||||
end if
|
||||
! read input data
|
||||
!
|
||||
|
||||
@@ -638,7 +638,9 @@ contains
|
||||
write(psb_err_unit,*) 'Opened file ',trim(filename),' for input'
|
||||
end if
|
||||
else
|
||||
inp_unit=psb_inp_unit
|
||||
write(psb_err_unit,*) 'Usage: amg_d_pde3d ctrl-file '
|
||||
call psb_abort(ctxt)
|
||||
stop
|
||||
end if
|
||||
! read input data
|
||||
!
|
||||
|
||||
@@ -736,7 +736,7 @@ contains
|
||||
npdims = 1
|
||||
#else
|
||||
npp = np
|
||||
call mpi_dims_create(npp,3,npdims,minfo)
|
||||
call mpi_dims_create(npp,2,npdims,minfo)
|
||||
#endif
|
||||
npx = npdims(1)
|
||||
npy = npdims(2)
|
||||
|
||||
@@ -634,7 +634,9 @@ contains
|
||||
write(psb_err_unit,*) 'Opened file ',trim(filename),' for input'
|
||||
end if
|
||||
else
|
||||
inp_unit=psb_inp_unit
|
||||
write(psb_err_unit,*) 'Usage: amg_s_pde2d ctrl-file '
|
||||
call psb_abort(ctxt)
|
||||
stop
|
||||
end if
|
||||
! read input data
|
||||
!
|
||||
|
||||
@@ -638,7 +638,9 @@ contains
|
||||
write(psb_err_unit,*) 'Opened file ',trim(filename),' for input'
|
||||
end if
|
||||
else
|
||||
inp_unit=psb_inp_unit
|
||||
write(psb_err_unit,*) 'Usage: amg_s_pde3d ctrl-file '
|
||||
call psb_abort(ctxt)
|
||||
stop
|
||||
end if
|
||||
! read input data
|
||||
!
|
||||
|
||||
Reference in New Issue
Block a user