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

Interp_L1toExecutable
% Class for converting L1 M-script to MEX file for FEM Interpolation
classdef Interp_L1toExecutable
    properties %(SetAccess='private',GetAccess='private')
        Snippet_Dir           % just a temporary directory for storing code snippets
        GenCode_Dir           % where to put the generated interpolation code
        MEXFile_Dir           % where to put the compiled MEX file
        DEBUG                 % indicates whether to put debugging code in
    end
    methods
        function obj = Interp_L1toExecutable(varargin)
            
            if nargin ~= 3
                disp('Requires 3 arguments!');
                disp('First  is the directory location for temporary code snippets.');
                disp('Second is the directory location of the auto-generated code.');
                disp('Third  is the directory location of the compiled MEX file.');
                error('Check the arguments!');
            end
            
            OUT_str  = '|---> Init Interp_L1toExecutable Object...';
            disp(OUT_str);
            
            obj.Snippet_Dir          = varargin{1};
            obj.GenCode_Dir          = varargin{2};
            obj.MEXFile_Dir          = varargin{3};
            obj.DEBUG                = true;
            
            if ~ischar(obj.Snippet_Dir)
                error('Directory should be a string!');
            end
            if ~ischar(obj.GenCode_Dir)
                error('Directory should be a string!');
            end
            if ~ischar(obj.MEXFile_Dir)
                error('Directory should be a string!');
            end
        end
    end
end

% END %

Contact us