view prof.m @ 667:ed853945ee99 feature/poroelastic

Make free BC work with data. Bugfix domain size.
author Martin Almquist <malmquist@stanford.edu>
date Wed, 20 Dec 2017 06:52:17 +0100
parents cb65c81d6c87
children
line wrap: on
line source

function prof(f)
    profile on
    try
        f();
        profile viewer
    catch e
        fprintf(2, '\n%s', getReport(e));
        profile clear
    end
end