tfix name clash, print simulation id to console - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
 (HTM) git clone git://src.adamsgaard.dk/cosmo
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 1b8830e029289db2d8e6fff77f54a9e7bea295f1
 (DIR) parent e4e801ccb5d3b1b7c6901c298176602577ecd934
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Tue, 29 Sep 2015 15:41:19 +0200
       
       fix name clash, print simulation id to console
       
       Diffstat:
         M matlab/file_scanner_mcmc_starter.m  |       1 +
         M matlab/mcmc_inversion.m             |       4 ++--
       
       2 files changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/matlab/file_scanner_mcmc_starter.m b/matlab/file_scanner_mcmc_starter.m
       t@@ -67,6 +67,7 @@ while 1
                
                if debug
                    disp(infile);
       +            disp(strcat('Simulation id: ', id));
                end
                
                % read file and save data to local scope
 (DIR) diff --git a/matlab/mcmc_inversion.m b/matlab/mcmc_inversion.m
       t@@ -9,7 +9,7 @@ function [Ss, save_file] = mcmc_inversion(matlab_scripts_folder, debug, ...
            t_degla, t_degla_uncer, ...
            record, ...
            record_threshold_min, record_threshold_max, ...
       -    statusfile, id)
       +    statusfile, sim_id)
        
        %% mcmc_inversion.m
        % function is called from `file_scanner_mcmc_starter.m`
       t@@ -257,5 +257,5 @@ if beeps
        end
        
        %save_file = [outfolder, '/', id, '_Walks_',datestr(now,'yyyymmdd_HHMMSS')];
       -save_file = strcat(outfolder, '/', id, '_Walks');
       +save_file = strcat(outfolder, '/', sim_id, '_Walks');
        save(save_file,'Ss','save_file')