view pointIndex.m @ 808:442ec6c77c3f feature/poroelastic

Make multiblock.evalOn work for any dimension
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 27 Jul 2018 10:03:21 -0700
parents bb079b39a7bb
children
line wrap: on
line source

% Get the index of the points p within the tall array of points ps
function [I, ok] = pointIndex(p, ps)
    [ok, I] = ismember(p,  ps, 'rows');
end