Ignore:
Timestamp:
04/16/12 16:06:52 (13 years ago)
Author:
cborstad
Message:

merged trunk-jpl into trunk-jpl-damage through revision 11990

Location:
issm/branches/trunk-jpl-damage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-jpl-damage

  • issm/branches/trunk-jpl-damage/src/m/classes/debug.m

    r11219 r12004  
    66classdef debug
    77        properties (SetAccess=public)
    8                 valgrind=false;
    9                 gprof   = false;
     8                valgrind = false;
     9                gprof    = false;
     10                petsc_profiling = false;
    1011        end
    1112        methods
     
    1415                                case 0
    1516                                        obj=setdefaultparameters(obj);
    16                                 case 1
    17                                         in=varargin{1};
    18                                         if (isa(in,'numeric') & in==0),
    19                                                 % requesting templates do nothing
    20                                         else
    21                                                 error('constructor not supported');
    22                                         end
    2317                                otherwise
    2418                                        error('constructor not supported');
     
    3327                        fielddisplay(obj,'valgrind','use Valgrind to debug (0 or 1)');
    3428                        fielddisplay(obj,'gprof','use gnu-profiler to find out where the time is spent');
     29                        fielddisplay(obj,'petsc_profiling','enables PETSc profiling (memory, flops, time)');
    3530
     31                end % }}}
     32                function marshall(obj,fid) % {{{
     33                        WriteData(fid,'object',obj,'fieldname','petsc_profiling','format','Boolean');
    3634                end % }}}
    3735        end
Note: See TracChangeset for help on using the changeset viewer.