Code covered by the BSD License  

Highlights from
FELICITY

image thumbnail

FELICITY

by

 

21 Apr 2011 (Updated )

Finite ELement Implementation and Computational Interface Tool for You

test_Mesh_Gen_With_Solving_PDE()
function status = test_Mesh_Gen_With_Solving_PDE()
%test_Mesh_Gen_With_Solving_PDE
%
%   Demo code for FELICITY.

% Copyright (c) 04-24-2013,  Shawn W. Walker

m_script = 'MatAssem_Mesh_Gen_With_Solving_PDE';
MEX_File = 'DEMO_mex_Mesh_Gen_With_Solving_PDE_assemble';

% get directory that this mfile lives in
Main_Dir = fileparts(mfilename('fullpath'));

[status, Path_To_Mex] = Convert_Mscript_to_MEX(Main_Dir,m_script,MEX_File);
if status~=0
    disp('Compile did not succeed.');
    return;
end

S = warning('QUERY', 'MATLAB:TriRep:PtsNotInTriWarnId');
OLD_STATE = S.state;
% turn off this warning for the demo
warning('off', 'MATLAB:TriRep:PtsNotInTriWarnId');

status = Execute_Mesh_Gen_With_Solving_PDE();

% put the warning back in its original state
warning(OLD_STATE, 'MATLAB:TriRep:PtsNotInTriWarnId');

% % remove the mex file
% delete([Path_To_Mex, '.*']);

end

Contact us