diff util/SMALL_solve.m @ 228:198d4d9cee74 luisf_dev

Now can use a local configuration file, which is a copy of the default config files, and thus not being commited to the repository.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 12 Apr 2012 15:06:41 +0100
parents a986ee86651e
children
line wrap: on
line diff
--- a/util/SMALL_solve.m	Thu Apr 12 14:06:27 2012 +0100
+++ b/util/SMALL_solve.m	Thu Apr 12 15:06:41 2012 +0100
@@ -48,8 +48,14 @@
 start=cputime;
 tStart=tic;
 
-% solvers configuration file
-run(fullfile(SMALL_path, 'config/SMALL_solve_config.m'));
+%% solvers configuration
+% test if there is a locally modified version of the config
+% otherwise reads the "default" config file
+if exist(fullfile(SMALL_path, 'config/SMALL_solve_config_local.m'), 'file') == 2
+    run(fullfile(SMALL_path, 'config/SMALL_solve_config_local.m'));
+else
+    run(fullfile(SMALL_path, 'config/SMALL_solve_config.m'));
+end
 
 %%
 %   Sparse representation time