Changeset 1034 for trunk/src


Ignore:
Timestamp:
May 1, 2018, 8:17:03 AM (6 years ago)
Author:
g7moreau
Message:
  • Put some air in the source code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/compile.m

    r1033 r1034  
    2525
    2626function compile (FctName,SubfctPath)
     27
    2728hh=[]; % handles of message display window
     29
    2830if isempty(which('mcc'))
    2931    msgbox_uvmat('ERROR','no Matlab compiler toolbox mcc installed')
     
    3234    hh=msgbox_uvmat('WAITING...',['compilation of ' FctName ' in progress...']);
    3335end
     36
    3437disp(['compiling ' FctName ' ...'])
     38
    3539% commands to compile civ_matlab and eventually other functions
    3640if ~exist('bin','dir')
     
    4044    end
    4145end
     46
    4247if ~isempty(SubfctPath)
    4348    SubfctPath=['-I ' SubfctPath]; % string indicating the option of including the path SubfctPath
    4449end
     50
    4551[mcrmajor, mcrminor] = mcrversion;   
    4652MCRROOT = ['MCRROOT',int2str(mcrmajor),int2str(mcrminor)];
    4753FctNameVersion=[FctName,'_',MCRROOT];
     54
    4855try
    4956    disp(['mcc -m -R -nojvm -R -nodisplay -R -singleCompThread ' SubfctPath ' ' FctName '.m'])
     
    5663    hh=msgbox_uvmat('ERROR',ME.message);
    5764end
     65
    5866display('** END **')
     67
    5968if ~isempty(hh)
    60 delete(hh)
     69    delete(hh)
    6170end
    6271
Note: See TracChangeset for help on using the changeset viewer.