From 4a6d6b2735b0b3fdb8c0dd6f039ed2de177081df Mon Sep 17 00:00:00 2001 From: Pariksheet Nanda Date: Thu, 22 Feb 2018 18:50:51 -0500 Subject: [PATCH] DEV: Fix newline format --- Utilities/Install/optiSolverPack_Install.m | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Utilities/Install/optiSolverPack_Install.m b/Utilities/Install/optiSolverPack_Install.m index 12a2206..22cc353 100644 --- a/Utilities/Install/optiSolverPack_Install.m +++ b/Utilities/Install/optiSolverPack_Install.m @@ -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); @@ -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]); @@ -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; @@ -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');