 
     char *cucolfield = NULL, *curowfield = NULL;
 
-    if (vec->traits.flags & GHOST_DENSEMAT_SCATTERED) {
+    if (vec->traits.flags & GHOST_DENSEMAT_VIEW) {
         
-        WARNING_LOG("Potentially slow fromScalar operation because some rows or columns are masked out!");
+        WARNING_LOG("Potentially slow fromScalar operation because some rows or columns may be masked out!");
         GHOST_CALL_GOTO(ghost_cu_malloc((void **)&cucolfield,vec->traits.ncolsorig),err,ret);
         GHOST_CALL_GOTO(ghost_cu_malloc((void **)&curowfield,vec->traits.nrowsorig),err,ret);
 

    }

    
    if ((v1->traits.flags & GHOST_DENSEMAT_SCATTERED) || (v2->traits.flags & GHOST_DENSEMAT_SCATTERED)) {
        WARNING_LOG("Potentially slow VAXPY operation because some rows or columns are masked out!");
        
        GHOST_CALL_GOTO(ghost_cu_malloc((void **)&cucolfield,v1->traits.ncolsorig),err,ret);
        GHOST_CALL_GOTO(ghost_cu_malloc((void **)&curowfield,v1->traits.nrowsorig),err,ret);

        return GHOST_ERR_NOT_IMPLEMENTED;
    }
    
    if ((v1->traits.flags & GHOST_DENSEMAT_VIEW) || (v2->traits.flags & GHOST_DENSEMAT_VIEW)) {
        
        WARNING_LOG("Potentially slow VAXPBY operation because some rows or columns may be masked out!");
        GHOST_CALL_GOTO(ghost_cu_malloc((void **)&cucolfield,v1->traits.ncolsorig),err,ret);
        GHOST_CALL_GOTO(ghost_cu_malloc((void **)&curowfield,v1->traits.nrowsorig),err,ret);

