base/modules/psb_const_mod.F90
 base/modules/psb_error_mod.F90

New error message for optional arguments needing to come in pairs.
psblas-3.4-maint
Salvatore Filippone 9 years ago
parent 15a14b4124
commit 584c564976

@ -216,6 +216,7 @@ module psb_const_mod
integer(psb_ipk_), parameter, public :: psb_err_no_optional_arg_=581
integer(psb_ipk_), parameter, public :: psb_err_arg_m_required_=582
integer(psb_ipk_), parameter, public :: psb_err_many_optional_arg_=583
integer(psb_ipk_), parameter, public :: psb_err_optional_arg_pair_=584
integer(psb_ipk_), parameter, public :: psb_err_spmat_invalid_state_=600
integer(psb_ipk_), parameter, public :: psb_err_missing_override_method_=700
integer(psb_ipk_), parameter, public :: psb_err_invalid_dynamic_type_=701

@ -744,6 +744,13 @@ contains
&'("One of the optional arguments ",a," must be present")')&
& trim(a_e_d)
case(psb_err_optional_arg_pair_)
allocate(achmsg(2))
achmsg(1) = tmpmsg
write(achmsg(2),&
&'("The optional arguments ",a," must be present together")')&
& trim(a_e_d)
case(psb_err_arg_m_required_)
allocate(achmsg(2))
achmsg(1) = tmpmsg

Loading…
Cancel
Save