view +grid/funcToMatrix.m @ 686:5ccf6aaf6d6b feature/poroelastic

Add D2VariablePeriodic orders 4 and 6.
author Martin Almquist <malmquist@stanford.edu>
date Thu, 08 Feb 2018 16:44:46 -0800
parents 5f75d7094983
children bc2be302df90
line wrap: on
line source

% Converts a gridfunction to a matrix
% Takes a grid function and and a structured grid.
function F = funcToMatrix(g, gf)
    F = reshapeRowMaj(gf, g.size());
end