You are here: Home Resources Computers Hebb Octave on Blue Gene octave-warning.patch

octave-warning.patch

Patch to make Octave warnings more instructive as to the source of the warning. This makes life much easier in parallel and batch implementations.

— Plain Text, 594 bytes

File contents

diff -rp -x '*.[ado]*' src/error.cc src/error.cc
*** src/error.cc  2007-12-04 20:02:46.215720431 +0100
--- src/error.cc  2008-03-28 14:22:05.393477273 +0100
*************** vwarning (const char *name, const char *
*** 162,168 ****
    std::ostringstream output_buf;

    if (name)
!     output_buf << name << ": ";

    octave_vformat (output_buf, fmt, args);

--- 162,172 ----
    std::ostringstream output_buf;

    if (name)
!     output_buf << name ;
!   if(id)
!     output_buf << "[" << id << "]" ;
!   if(name||id)
!     output_buf << ": ";

    octave_vformat (output_buf, fmt, args);