error messages for impossible configurations
@@ -308,7 +308,7 @@ void opt_reg_configure(unsigned int N, const long img_dims[N], struct opt_reg_s*
debug_printf(DP_INFO, "NIHT with wavelets regularization: k = %d%% of total elements in each wavelet transform\n", regs[nr].k);
if (use_gpu)
- error("GPU operation is not currently implemented for NIHT.\nContinuing with CPU.\n");
+ error("GPU operation is not currently implemented for NIHT.\n");
long img_strs[N];
md_calc_strides(N, img_strs, img_dims, CFL_SIZE);
@@ -351,10 +351,8 @@ void opt_reg_configure(unsigned int N, const long img_dims[N], struct opt_reg_s*
{
debug_printf(DP_INFO, "NIHT regularization in the image domain: k = %d%% of total elements in image vector\n", regs[nr].k);
- if (use_gpu){
-
- error("GPU operation is not currently implemented for NIHT.\nContinuing with CPU.\n");
- }
+ if (use_gpu)
+ error("GPU operation is not currently implemented for NIHT.\n");
long thresh_dims[N];
md_select_dims(N, regs[nr].xflags, thresh_dims, img_dims);
@@ -401,6 +399,10 @@ void opt_reg_configure(unsigned int N, const long img_dims[N], struct opt_reg_s*
debug_printf(DP_INFO, "lowrank regularization: %f\n", regs[nr].lambda);
+ if (use_gpu)
+ error("GPU operation is not currently implemented for lowrank regularization.\n");
+
+
// add locally lowrank penalty
levels = llr_blkdims(blkdims, regs[nr].jflags, img_dims, llr_blk);
@@ -445,7 +447,7 @@ void opt_reg_configure(unsigned int N, const long img_dims[N], struct opt_reg_s*
linop_free(decom_op);
linop_free(tmp_op);
#else
- debug_printf(DP_WARN, "multi-scale lowrank regularization not yet supported: %f\n", regs[nr].lambda);
+ error("multi-scale lowrank regularization not supported.\n");
#endif
break;
