Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DEV: Fix newline format
  • Loading branch information
Pariksheet Nanda committed Feb 22, 2018
1 parent 0f1f10b commit 4a6d6b2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Utilities/Install/optiSolverPack_Install.m
Expand Up @@ -437,8 +437,8 @@ if(~isempty(strfind(str,rep)))
fp = fopen([nmdpath '/Eval_Point.hpp'],'w');
fprintf(fp,'%s',str); fclose(fp);
str = fileread([nmdpath '/Eval_Point.cpp']);
str = sprintf('%s/n/n%s',str,'void NOMAD::Eval_Point::reset_tags_and_bbes ( void ) {_current_tag = 0;_current_bbe = 0;_current_sgte_bbe = 0;}');
str = sprintf('%s/n/n%s',str,'bool NOMAD::Eval_Point::is_eval_ok ( void ) const { return (_eval_status == NOMAD::EVAL_OK); }');
str = sprintf('%s\n\n%s',str,'void NOMAD::Eval_Point::reset_tags_and_bbes ( void ) {_current_tag = 0;_current_bbe = 0;_current_sgte_bbe = 0;}');
str = sprintf('%s\n\n%s',str,'bool NOMAD::Eval_Point::is_eval_ok ( void ) const { return (_eval_status == NOMAD::EVAL_OK); }');
%str = sprintf('%s/n/n%s',str,'bool NOMAD::Eval_Point::is_feasible ( const NOMAD::Double & h_min ) const { return ( _h.is_defined() && _h <= h_min ); }');
fp = fopen([nmdpath '/Eval_Point.cpp'],'w');
fprintf(fp,'%s',str); fclose(fp);
Expand Down Expand Up @@ -504,7 +504,7 @@ str = ['dumpbin /ALL /OUT:"' outpath '" '];
for i = 1:length(alllibs)
str = [str '"',libpath,alllibs{i} '" '];
end
str = sprintf('%s/n',str);
str = sprintf('%s\n',str);
% %%
% cd(vcdir)
% eval([batstr ' & ' str]);
Expand Down Expand Up @@ -562,8 +562,8 @@ files = {'nomadmex.cpp'};
outnames = {'nomad'};
pp = {'OPTI_VER'};

fprintf('/n------------------------------------------------/n');
fprintf('OPTI SOLVER PACK MEX FILE INSTALL/n/n');
fprintf('\n------------------------------------------------\n');
fprintf('OPTI SOLVER PACK MEX FILE INSTALL\n\n');

%CD to Source Directory
cdir = cd;
Expand Down Expand Up @@ -648,17 +648,17 @@ for i = 1:length(files)
pre = ['mex -largeArrayDims ' files{i}];
end
try
eval([pre inc libl post])
eval([pre ' -v ' inc libl post])
movefile([outnames{i} '.' mexext],'../','f')
fprintf('Done!/n');
fprintf('Done!\n');
catch ME
cd(cdir);
error('opti:packcompile','Error Compiling %s!/n%s',upper(outnames{i}),ME.message);
error('opti:packcompile','Error Compiling %s!\n%s',upper(outnames{i}),ME.message);
end
end
%Return to user path
cd(cdir);
fprintf('------------------------------------------------/n');
fprintf('------------------------------------------------\n');



Expand Down

0 comments on commit 4a6d6b2

Please sign in to comment.